Skip to content

🤖 fix: stabilize pre-stream workspace status indicator#3132

Merged
ammario merged 1 commit intomainfrom
streaming-indicator-gze2
Apr 6, 2026
Merged

🤖 fix: stabilize pre-stream workspace status indicator#3132
ammario merged 1 commit intomainfrom
streaming-indicator-gze2

Conversation

@ammar-agent
Copy link
Copy Markdown
Collaborator

@ammar-agent ammar-agent commented Apr 5, 2026

Summary

Stabilize the workspace sidebar's pre-stream status indicator so it no longer flashes when the turn moves from starting into streaming.

Background

The sidebar indicator showed a visible handoff flash before streaming began. The starting phase rendered a spinner inline with the model label, so removing it at stream-start caused the text to jump left. The sidebar also used the fallback model during starting, so the label could change again at stream-start when a pending send had requested a different model.

Implementation

  • expose pendingStreamModel through WorkspaceSidebarState so the sidebar can use the actual requested pre-stream model
  • animate the starting spinner slot closed during the starting -> streaming handoff so the live transition stays smooth while the steady streaming layout remains unchanged
  • add coverage for the starting -> streaming handoff and for pending requested model propagation into sidebar state

Validation

  • make static-check
  • bun test ./src/browser/components/WorkspaceStatusIndicator/WorkspaceStatusIndicator.test.tsx
  • bun test ./src/browser/stores/WorkspaceStore.test.ts --filter "stream starting state"
  • bun test ./src/browser/components/AgentListItem/AgentListItem.test.tsx
  • make typecheck
  • make lint

Risks

Low risk. The change is scoped to the sidebar status indicator and the derived sidebar snapshot shape in WorkspaceStore. The new tests cover both the visual handoff logic and the pending-model state path.


Generated with mux • Model: openai:gpt-5.4 • Thinking: xhigh • Cost: $5.46

@ammar-agent
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ammar-agent
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ammar-agent ammar-agent force-pushed the streaming-indicator-gze2 branch from 059759f to 75c5245 Compare April 5, 2026 22:44
@ammar-agent
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ammar-agent
Copy link
Copy Markdown
Collaborator Author

@codex review

@ammar-agent ammar-agent force-pushed the streaming-indicator-gze2 branch from 75c5245 to 8c3bd13 Compare April 5, 2026 23:00
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Keep the workspace sidebar status label anchored through the pre-stream
handoff by reserving the loader slot and by reusing the pending requested
model before stream-start. Add component and store coverage for the new
pending-model sidebar path.

---

_Generated with `mux` • Model: `openai:gpt-5.4` • Thinking: `xhigh` • Cost: `$5.46`_

<!-- mux-attribution: model=openai:gpt-5.4 thinking=xhigh costs=5.46 -->
@ammar-agent ammar-agent force-pushed the streaming-indicator-gze2 branch from 8c3bd13 to 5969820 Compare April 5, 2026 23:14
@ammar-agent
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ammario ammario merged commit 65f22cc into main Apr 6, 2026
24 checks passed
@ammario ammario deleted the streaming-indicator-gze2 branch April 6, 2026 13:39
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.

2 participants