fix(web): keep workspace options when expanding lineage #16635
main fromrefs/pull/16635/head·merged by maria-rcks View on GitHubNote
Written by gpt-6.1-sol on behalf of Maria
Expanding "Previous agents" or clicking "Show 12 more" could switch the workspace card to compact mode, hiding lineage, the workspace selector, and git actions. Exclude lineage from density fitting while retaining its rendered height for preview placement, so expanded rows use the existing scroll areas.
Verified the failure and fix in the real web client with 34 copied agent records at 1280 × 630, including paging to the final row and opening a child thread. The 900 × 630 popover also preserves options after expansion in light and dark themes. Blacksmith: 41 focused tests, targeted lint, and web typecheck passed. Both independent reviewers approved dafe88b4f07b269d0e81f380e0bb2269d3abb853. Desktop shares the web component; native mobile and provider behavior are unaffected. Expanded lineage with preview drag/resize was not exercised in the app; existing canvas/layout checks passed.
Before clicking "Show 12 more", lineage was expanded. Clicking it removed the section and workspace actions:


After the same click, the card retains workspace actions and the expanded lineage list:


Model: gpt-6.1-sol; harness: Codex in T3 Code.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
Approvability#
Verdict: Approved at
dafe88bMacroscope's review found this PR approvable — This is a small, contained web UI bug fix that adjusts thread-card height measurement so expanding lineage preserves workspace controls. It introduces no schema, infrastructure, security-sensitive, default, or static-analysis changes.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
8563392c-72eb-4360-a7c8-5961e93b500a
📥 Commits
Reviewing files that changed from the base of the PR and between ab28039ef77ca8847c6bfe845c3502ff7e348c30 and dafe88b4f07b269d0e81f380e0bb2269d3abb853.
📒 Files selected for processing (1)
apps/web/src/components/chat/ThreadDetailsCard.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
📝 Walkthrough
Walkthrough#
ThreadDetailsCardnow separates the height used for density decisions from the full-content height used for inline card-bottom reporting.Changes#
Thread details card height measurement
Layer / File(s) Summary Separate density and full-content heights
apps/web/src/components/chat/ThreadDetailsCard.tsxDensity measurements exclude the relationships panel’s height. When density is full, the card stores the unadjusted content height separately and uses it for keyed inline card-bottom reporting.Priority: ⬇️ Low
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers:
t3dotggMerge Risk: ⚪ Minimal · up to
dafe8The change separates density fitting from the full-card placement bound while preserving the existing layout behavior. The checked placement concern was refuted; no merge-blocking risk is established.
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request. Title check ✅ Passed The title clearly summarizes the main change: keeping workspace options visible when lineage expands. Description check ✅ Passed The description explains the problem and change, reports focused verification results, includes before-and-after UI evidence, and notes an untested interaction. It also reports reviewer approval, thou… ✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create a new PR
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment `@coderabbitai help` to get the list of available commands.maria-rcks merged this847c53d
maria-rcks closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes