Skip to content

Add submission strategy and runtime title updates - #3

Merged
muukii merged 3 commits into
mainfrom
devin/1794935871-queue-strategy-presentation-updates
Nov 18, 2026
Merged

muukii merged 3 commits into
mainfrom
devin/1794935871-queue-strategy-presentation-updates

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two additions for apps that queue several continued tasks and rename them as phases advance:

  • submit gains strategy: SubmissionStrategy — .fail (default, unchanged) or .queue. .queue keeps a request queued until the system can launch it; the job stays in .requesting and job.cancel() still withdraws it. Without this, an app submitting several jobs at once sees later requests rejected and run without a system task.
  • Job.title/subtitle are now observable values, and job.updateTitle(_:subtitle:) renames the work in the system's continued-task UI. Updates before launch change only the job's own values; start applies the latest values to the newly attached task.

To support mutable titles, Job's initializer is now MainActor-isolated (created inside MainActor.run in submit), and title/subtitle changed from nonisolated let to private(set) var — reads outside the main actor now need await.

Link to Devin session: https://app.devin.ai/sessions/9374f2ac2fac42d3a92ab2c13e664f44
Open in Devin Desktop: https://app.devin.ai/desktop/session/9374f2ac2fac42d3a92ab2c13e664f44?variant=devin
Requested by: @muukii


🟢 Devin Review found nothing to fix · View findings

Devin Review

- submit gains strategy: .fail (default, unchanged) or .queue, which
  keeps a request queued until the system can launch it; the job stays
  in .requesting and job.cancel() still withdraws it.
- Job.title/subtitle become observable values, and updateTitle(_:subtitle:)
  renames the work in the system's continued-task UI once the task
  launches.

Co-Authored-By: Kimura Hiroshi (Muukii) <muukii.app@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Context gains updateTitle(_:subtitle:) so the operation can retitle its
continued task between phases without holding a reference to the Job.
A generic Context<Output> carrying the Job broke trailing-closure
inference, so the surface is a single sendable member instead.

Co-Authored-By: Kimura Hiroshi (Muukii) <muukii.app@gmail.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Co-Authored-By: Kimura Hiroshi (Muukii) <muukii.app@gmail.com>
@muukii
muukii merged commit 6dab658 into main Nov 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant