gopeed icon indicating copy to clipboard operation
gopeed copied to clipboard

Add auto-start incomplete tasks on application startup

Open Copilot opened this issue 3 months ago • 0 comments

Implements automatic resumption of incomplete download tasks when the application launches, controlled via a user-configurable setting.

Changes

Configuration

  • Added autoStartTasks boolean field to ExtraConfig (defaults to false)
  • Field persists in user settings alongside other application preferences

Application Startup

  • On launch, if autoStartTasks is enabled, calls continueAllTasks() API
  • Leverages existing backend logic that respects maxRunning concurrency limits
  • Only affects paused/waiting tasks; skips running and completed tasks

Settings UI

  • Added toggle switch in Download settings section
  • Follows existing pattern used for defaultDirectDownload and similar options

Localization

  • Added translations for EN, CN (simplified/traditional), JP, DE, FR, ES, RU

Implementation Note

Frontend-only change. No Go backend modifications required—existing Continue() and continueAll() methods already handle task resumption with proper concurrency control.

// In main.dart initialization
if (controller.downloaderConfig.value.extra.autoStartTasks) {
  await api.continueAllTasks(null);  // Resumes all incomplete tasks
}
Original prompt

This section details on the original issue you should resolve

<issue_title>添加打开软件自动开始未完成的任。</issue_title> <issue_description>RT</issue_description>

Comments on the Issue (you are @copilot in this section)

  • Fixes GopeedLab/gopeed#1198

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot avatar Dec 11 '25 09:12 Copilot