Skip to content

fix(desktop): board row glyph draws the unread dot from the agent, not the column - #8904

Closed
RohithReddy20 wants to merge 2 commits into
ParadevAI:mainfrom
RohithReddy20:fix/board-review-glyph
Closed

RohithReddy20 wants to merge 2 commits into
ParadevAI:mainfrom
RohithReddy20:fix/board-review-glyph

Conversation

@RohithReddy20

@RohithReddy20 RohithReddy20 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What & why

Fixes #8647.

WorkspaceStateGlyph (the row glyph on the Workspaces board card and list row) decided whether to draw the green "Ready for review" dot from the board column, not from the agent's unread state. The issue's exact reproduction (idle agent + open PR) was already closed off by #8807, which added the "Finished · unread" column and drew the dot only for that column. The root cause the issue named was still there: because deriveBoardColumn deliberately files session workspaces under Idle instead of Finished, a session row with unread agent output showed the Idle pie on the board while the sidebar's lead indicator showed the green dot for the same workspace.

The glyph now renders StatusIndicator status="review" when agentStatus === "review", the same rule the sidebar's pickLead uses, and otherwise the column's BoardColumnIcon with its label. deriveBoardColumn and column placement are unchanged, so a row that is in "In review" only because of its PR shows the column icon, and the dot means unseen agent output everywhere.

A co-located WorkspaceStateGlyph.test.tsx covers: idle agent + open PR (no dot, column icon), unread output + open PR (dot), and a session row with unread output (dot). The third case fails against the previous component and passes now.

How I tested it

Ran from the worktree:

  • bun run lint:fix: clean, no fixes applied
  • bunx @biomejs/[email protected] check .: 10947 files, clean
  • bun run typecheck in apps/desktop: exit 0
  • bun test src/renderer/routes/_authenticated/_dashboard/v2-workspaces in apps/desktop: 26 pass, 0 fail
  • bun run check:i18n: not run; no user-facing strings were added or changed (only a doc comment)

UI behaviour was not verified in the running app; the change is covered by the unit tests above.

Checklist

  • PR title follows conventional commits (type(scope): subject)
  • bun run lint and bun run typecheck pass (CI fails on lint warnings too)
  • "Allow edits from maintainers" is checked on fork PRs
  • I have signed the CLA (the bot asks on your first PR)

Summary by CodeRabbit

  • Bug Fixes
    • The workspace review indicator now appears when an agent is in review, including for session workspaces. It no longer appears solely because a workspace is in a finished board column. For other statuses, the workspace continues to display its board-column icon. This makes the indicator reflect the agent’s review status rather than the workspace’s column.

…t the column

The Workspaces board and list glyph reused the sidebar's green "Ready for
review" dot for whichever rows the board column mapping sent its way. Before
ParadevAI#8807 that was the whole In review column, so a card with an open PR and an
idle agent kept the dot until the PR merged or closed. ParadevAI#8807 split
Finished · unread out of In review and keyed the dot on that column, which
fixed the reported case but left the glyph coupled to deriveBoardColumn:
session rows skip Finished on purpose (they arrive in volume), so a session
row with unread output lost its dot on the board while the sidebar still
showed one.

WorkspaceStateGlyph now draws the dot when agentStatus is "review", as the
sidebar's lead indicator does, and otherwise shows the column icon with the
column label. A row filed under In review by its PR alone shows the In review
pie; a session row with unread output shows the dot in Idle. deriveBoardColumn
is unchanged.

Adds a co-located test for the reported case (idle agent, open PR: no dot),
unread output with an open PR, and a session row with unread output.

Fixes ParadevAI#8647
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Walkthrough

WorkspaceStateGlyph now shows the review indicator based on agent status, rather than the derived board column. Tests cover open-PR and session workspace cases.

Changes: Workspace state glyph

Layer / File(s) Summary
Agent status glyph and coverage
apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspaces/components/WorkspaceStateGlyph/WorkspaceStateGlyph.tsx, apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspaces/components/WorkspaceStateGlyph/WorkspaceStateGlyph.test.tsx
The component shows the review indicator when agentStatus is "review". Other statuses use the derived board-column icon and label. Tests cover an open PR with idle status, an open PR with review status, and a session workspace with review status.

Priority: Not assessed

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: kitenite

Merge Risk: Minimal · up to 2b185

The change is mergeable; tightening the fallback assertion would improve regression coverage.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

WorkspaceStateGlyph now draws the unread dot from agentStatus === "review" instead of the board column.

  • Workspaces show the unread dot when the agent has unread output.

No actionable issues were found. Tests and the running UI were not executed during this review.

Reviews (1) · Last reviewed commit: "fix(desktop): shorten WorkspaceStateGlyp..." · Reviewed by Greptile

@RohithReddy20

Copy link
Copy Markdown
Contributor Author

Closing to resubmit one at a time after addressing review feedback.

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.

Board: card's green dot never clears while its PR is open

1 participant