Repository navigation
Unsent queued prompt changes show one toast, with read-only wording when read-only - #1284
Merged
Merged
Conversation
…hen read-only Split out from #1283 because offline fixture runs mutate the queue locally and proving this requires a live --read-only server. Uses QueueHost::write_quiet (backed by App::write_quiet) in run_queue_op so step_queue emits one toast instead of two, and checks QueueHost::is_read_only() in Effect::Failed(None) so read-only windows show our read-only toast instead of Not connected.
Hona
marked this pull request as ready for review
November 26, 2026 05:57
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.
Follow-up to #1269 (split out from #1283) for queued prompt changes (
QueueHost/run_queue_op), which showed two failure toasts when a tracked write could not be sent on a live window (no writer attached yet or--read-only), and showed"Not connected to an OpenCode server"instead of the read-only wording for a read-only rewrite. Ours-only fault: no official commit, so no ledger row.What changes
Steer,Remove,Undo,Deleteinrun_queue_op): callQueueHost::write_quiet(backed byApp::write_quiet) instead ofhost.write, sostep_queue'sEffect::Failed(None)emits one toast instead of two.--read-only): both tracked queue ops and rewrites (Edit,First,Reorder) checkQueueHost::is_read_only()onEffect::Failed(None)and show one read-only toast ("Nothing was sent"/"This window is read-only. Relaunch without --read-only to act.") instead of"Couldn't change the queued message"/"Not connected to an OpenCode server".3 files changed; no manifest, lock, profile or plugin contract change.
Verification
45731865594on head104703f3ef: green (guardrails,build-macos,build-windows (x64),build-windows (arm64),build-linux (x64); Linux arm64 skipped).278f9aaf38), 3/3 cases passed:--read-only), queued prompt remove: 1 toast ("Nothing was sent"/"This window is read-only. Relaunch without --read-only to act."). Before: 2 toasts ("Nothing was sent"+"Couldn't change the queue"/"Not connected to an OpenCode server").--read-only), queued prompt edit: 1 toast ("Nothing was sent"/"This window is read-only. Relaunch without --read-only to act."). Before: 2 toasts ("Nothing was sent"+"Couldn't change the queue"/"Not connected to an OpenCode server").DELETEreturned204, removed the queued item cleanly, and showed 1 toast ("Removed from queue").