Skip to content

Unsent queued prompt changes show one toast, with read-only wording when read-only - #1284

Merged
Hona merged 1 commit into
devfrom
upstream-f/queue-one-toast
Nov 26, 2026
Merged

Hona merged 1 commit into
devfrom
upstream-f/queue-one-toast

Conversation

@Hona

@Hona Hona commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

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

  • Tracked queue ops (Steer, Remove, Undo, Delete in run_queue_op): call QueueHost::write_quiet (backed by App::write_quiet) instead of host.write, so step_queue's Effect::Failed(None) emits one toast instead of two.
  • Read-only live window (--read-only): both tracked queue ops and rewrites (Edit, First, Reorder) check QueueHost::is_read_only() on Effect::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

  • CI run 45731865594 on head 104703f3ef: green (guardrails, build-macos, build-windows (x64), build-windows (arm64), build-linux (x64); Linux arm64 skipped).
  • Headless live-server verification on the Windows x64 PR build beside a before build (278f9aaf38), 3/3 cases passed:
    1. Read-only live window (--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").
    2. Read-only live window (--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").
    3. Writable live window, queued prompt remove: DELETE returned 204, removed the queued item cleanly, and showed 1 toast ("Removed from queue").
  • Not run: real window, macOS, Linux.

…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
Hona marked this pull request as ready for review November 26, 2026 05:57
@Hona
Hona merged commit 9c72f05 into dev Nov 26, 2026
7 checks passed
@Hona
Hona deleted the upstream-f/queue-one-toast branch November 26, 2026 05:57
Hona added a commit that referenced this pull request Nov 27, 2026
…-238, UP-241, UP-244, UP-247, UP-248, #1284) (#1302)

* docs(upstream-sync): ported runs of 26 Nov afternoon (UP-218 live, UP-238, UP-241, UP-244, UP-247, UP-248, #1284)

* docs(upstream-sync): add 26 Nov afternoon rows to ported-runs.md
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