Skip to content

fix: make tool signature panel scrollable - #39

Merged
RhysSullivan merged 1 commit into
UsefulSoftwareCo:mainfrom
aryasaatvik:fix/tool-signature-scroll
Mar 23, 2026
Merged

RhysSullivan merged 1 commit into
UsefulSoftwareCo:mainfrom
aryasaatvik:fix/tool-signature-scroll

Conversation

@aryasaatvik

@aryasaatvik aryasaatvik commented Mar 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add max-h-40 and overflow-auto to the TypeScript Signature <pre> block in ToolDetailPanel
  • Previously, long tool signatures (e.g. AWS tools) would expand the header indefinitely, pushing the rest of the content out of view

Before / After

Before After
CleanShot 2026-03-21 at 09 30 43 CleanShot 2026-03-21 at 09 30 02

Test plan

  • Open a source with a tool that has a long signature (e.g. /sources/aws?tab=model&tool=aws.aws_read_documentation)
  • Verify the signature block is capped and scrollable
  • Verify shorter signatures still display without a scrollbar

@vercel

vercel Bot commented Mar 21, 2026

Copy link
Copy Markdown

@aryasaatvik is attempting to deploy a commit to the Rhys's Projects Team on Vercel.

A member of the Team first needs to authorize it.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2ddfaa5c6c

ℹ️ 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".

TypeScript Signature
</div>
<pre className="overflow-x-auto whitespace-pre-wrap font-mono text-[12px] text-foreground">
<pre className="max-h-40 overflow-auto whitespace-pre-wrap font-mono text-[12px] text-foreground">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Make the capped signature region keyboard-scrollable

When callDeclaration exceeds the new max-h-40, the hidden lines are only reachable inside this <pre>. A <pre> with overflow-auto is not focusable by default, so keyboard-only users cannot scroll it, and the outer panel cannot reveal the clipped content because the box height is capped here. In practice, long tool signatures become inaccessible unless the user has a mouse or touchpad.

Useful? React with 👍 / 👎.

@RhysSullivan

Copy link
Copy Markdown
Collaborator

lgtm thanks!

@RhysSullivan
RhysSullivan merged commit 61b70d5 into UsefulSoftwareCo:main Mar 23, 2026
1 check failed
RhysSullivan added a commit that referenced this pull request Apr 5, 2026
fix: make tool signature panel scrollable
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