Repository navigation
Add submission strategy and runtime title updates - #3
Merged
muukii merged 3 commits intoNov 18, 2026
Merged
Conversation
- 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>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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>
Co-Authored-By: Kimura Hiroshi (Muukii) <muukii.app@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two additions for apps that queue several continued tasks and rename them as phases advance:
submitgainsstrategy: SubmissionStrategy—.fail(default, unchanged) or.queue..queuekeeps a request queued until the system can launch it; the job stays in.requestingandjob.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/subtitleare now observable values, andjob.updateTitle(_:subtitle:)renames the work in the system's continued-task UI. Updates before launch change only the job's own values;startapplies the latest values to the newly attached task.To support mutable titles,
Job's initializer is nowMainActor-isolated (created insideMainActor.runinsubmit), andtitle/subtitlechanged fromnonisolated lettoprivate(set) var— reads outside the main actor now needawait.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