Skip to content

feat: set optimistic busy status on send/command/shell mutations#270

Open
chriswritescode-dev wants to merge 3 commits into
mainfrom
feat/optimistic-busy-session-status
Open

feat: set optimistic busy status on send/command/shell mutations#270
chriswritescode-dev wants to merge 3 commits into
mainfrom
feat/optimistic-busy-session-status

Conversation

@chriswritescode-dev

Copy link
Copy Markdown
Owner

Sets session status to busy optimistically on mutation start for useSendPrompt, useSendShell, and useLoadSkill, with rollback to the previous status on error. This prevents a perceived delay where the status only updates after the mutation resolves, even though the UI intent has been submitted.

Also adds test coverage for the optimistic helpers in sessionStatusStore and the busy-status behavior in all three mutation hooks.

Files

  • frontend/src/hooks/tests/useLoadSkill.test.tsx
  • frontend/src/hooks/useOpenCode.ts
  • frontend/src/hooks/useSendPrompt.test.ts
  • frontend/src/hooks/useSendShell.test.ts
  • frontend/src/stores/sessionStatusStore.test.ts
  • frontend/src/stores/sessionStatusStore.ts

@chriswritescode-dev chriswritescode-dev force-pushed the feat/optimistic-busy-session-status branch from b25a422 to da443b0 Compare June 8, 2026 04:03
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