Skip to content

Message queue: workspace drawer, Send button, agent aware clear (#34) - #53

Merged
gsvprharsha merged 1 commit into
mainfrom
queue-agent-aware-clear
Aug 20, 2026
Merged

gsvprharsha merged 1 commit into
mainfrom
queue-agent-aware-clear

Conversation

@gsvprharsha

@gsvprharsha gsvprharsha commented Aug 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Queue panel docks as a drawer under the workspace. The terminal stays in view when the queue opens, and panes shrink into the remaining space through flex flow.
  • New Send button starts the queue immediately. It enqueues the current draft if any, pops the head, and writes it to the PTY. The work done hook then dequeues the rest.
  • New Add /clear chip is opt in. Clicking it enqueues the agent context reset command as its own item, which addresses the sequential slash command flow in issue [Feature]: Sequential Slash Command Queue #34.
  • Clear command is agent aware. Each entry in config/agents.json declares its own reset string. Claude uses /clear, Codex uses /new, Goose uses .clear. QueuePanel reads the value through a prop, and defaults to /clear for user added agents that have not set one.
  • Fixed a store bug in messageQueue.ts. In place mutations reused the array reference, so useSyncExternalStore missed updates and the per item remove buttons did nothing. Every mutation now replaces the array reference.
  • Small UI polish sitting in the tree also lands: a check icon for the work done state, and ctrl click on links inside the terminal.

Closes #34.

Test plan

  • Open the queue on an agent session. Queue two messages. Hit Send. Confirm the first fires immediately, and the second fires after work done.
  • Click Add /clear on Claude Code. Confirm the enqueued text is /clear. Switch to Codex and repeat. Confirm the text is /new.
  • Remove a queued item through the per item X button. Confirm the list updates.
  • Open the queue and watch the panes shrink. Close the queue and watch them grow back.
  • Ctrl click a link inside the terminal, and confirm it opens.

The queue panel now docks as a drawer under the workspace, so the terminal
stays in view when the queue is open. Panes shrink into the remaining space
through normal flex flow.

Compose row gains two controls. Send starts the queue immediately: it
enqueues the current draft if any, pops the head, and writes it to the PTY.
The existing work done hook then dequeues the rest. Add /clear is opt in,
never automatic. Clicking it enqueues the agent context reset command as its
own item, which addresses the sequential slash command flow in issue #34.

The clear command is agent aware. Each entry in config/agents.json declares
its own reset string. Claude uses /clear, Codex uses /new, Goose uses .clear.
QueuePanel reads the value through a prop, and defaults to /clear for user
added agents that have not set one.

Fixed a store bug in messageQueue.ts. In place mutations reused the array
reference, so useSyncExternalStore missed updates and the per item remove
buttons did nothing. Every mutation now replaces the array reference.

Also lands small UI polish sitting in the tree: a check icon for the work
done state, and ctrl click to open links inside the terminal.

Closes #34.

Co-authored-by: Tempest <[email protected]>
@vercel

vercel Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tempest Ready Ready Preview Aug 20, 2026 2:11pm

Request Review

@gsvprharsha
gsvprharsha merged commit 9900e45 into main Aug 20, 2026
8 checks passed

This branch was successfully deployed

1 active deployment
Preview — a26e03f6 Deployed Aug 20, 2026 by vercel[bot]
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.

[Feature]: Sequential Slash Command Queue

1 participant