Skip to content

Layout/mode chrome parity and default withRouter on - #811

Open
govindavashishtha wants to merge 1 commit into
mainfrom
ui/layout-parity-withrouter-default
Open

govindavashishtha wants to merge 1 commit into
mainfrom
ui/layout-parity-withrouter-default

Conversation

@govindavashishtha

Copy link
Copy Markdown
Contributor

Summary

  • Bring Agents, Sessions, and Schedules chrome to drawer/dock/widget (parity with sidebar), including overlay back/close, compact session list→detail stacking, and AgentLibrary landing on the library by default.
  • Default TrueForgeUI withRouter to true; hosts that must not own the URL can pass withRouter={false}.

Test plan

  • Spot-check sidebar / drawer / dock / widget × AgentLibrary / AgentLibraryWithComposer for Agents, Sessions, Schedules buttons and overlay back/close
  • Confirm AgentLibrary opens Agents Library on load; AgentLibraryWithComposer still lands on chat
  • Confirm dock/widget UserAvatar stays icon-only; labeled name elsewhere
  • Confirm compact/mobile Sessions stacks list and detail
  • Confirm default mount syncs shell places to the URL; withRouter={false} leaves path sync off
  • pnpm --filter @truefoundry/trueforge-ui test

Made with Cursor

Drawer/dock/widget get Agents/Sessions/Schedules nav like sidebar, with compact session stacking and AgentLibrary landing on the library; withRouter now defaults to true so hosts get URL sync unless they opt out.

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot

changeset-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9e26262

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@truefoundry/trueforge-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 9e26262. Configure here.

shell?.setLibraryOpen(false);
shell?.setSchedulesOpen(false);
}}
onClick={handleBackToChat}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Library back returns empty state

Medium Severity

AgentLibrary now lands on the Agents overlay, but Back to chat only closes that overlay. In this mode the shell is idle and New Chat is disabled, so the control on the default screen drops users onto SelectAgentEmptyState — the empty landing this change set out to remove.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 9e26262. Configure here.

}}
/>
</aside>
) : null}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mobile drawer recents squeeze thread

Medium Severity

Drawer Recents is a fixed w-64 column that stays in the row on small screens and starts open. Sidebar hides the same pane below md. On a phone the thread is left with a sliver of width until the user happens to collapse Recents or open a history item.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 9e26262. Configure here.


useEffect(() => {
if (!recentsAllowed) setRecentsOpen(false);
}, [recentsAllowed]);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recents stay closed after overlay

Medium Severity

The Recents effect writes recentsOpen to false whenever an overlay or builder makes Recents disallowed. showRecentsPane already hides the pane in those cases, so the write is unnecessary and the panel does not come back after Back to chat even if the user never collapsed it.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 9e26262. Configure here.

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