fix(terminal): keep running-command tooltips concise - #6991
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Idle tabs still show cwd (or Reviewed by Cursor Bugbot for commit 0e1f580. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThis PR keeps terminal-tab tooltips compact by describing the foreground program instead of displaying the complete running command.
Confidence Score: 5/5The PR appears safe to merge with no actionable correctness, security, or quality issues identified. The changed tooltip path uses an existing non-throwing, bounded command-description helper, preserves idle behavior, and has focused regression coverage for the reported long-command case.
|
| Filename | Overview |
|---|---|
| apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/components/terminal-session/terminal-session.tsx | Replaces literal running-command tooltip text with an existing bounded command-description helper while retaining idle fallbacks. |
| apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/components/terminal-session/terminal-session.test.ts | Adds focused coverage for concise heredoc-command tooltips and existing idle-terminal behavior. |
Reviews (1): Last reviewed commit: "fix(terminal): keep running-command tool..." | Re-trigger Greptile

Summary
Slack issue: https://sim-ai.slack.com/archives/C093DF8MA21/p1786758187764159
The oversized tooltip was caused by passing the complete literal command into a short, non-interactive tooltip. Its existing width cap then wrapped document-length commands into a viewport-height column. This fixes the semantic input at the terminal call site by reusing
describeRunningCommand; it does not change the shared tooltip primitive or affect browser/resource-tab tooltip behavior.Type of Change
Testing
@sim/terminal-protocoltests: 9 passed.lib/workspace-files/shell-layout.test.ts./Users/billleoutsakos — python3rather than the literal heredoc.Checklist
Screenshots/Videos
The original oversized-tooltip screenshot is in the linked Slack thread. Manual QA was completed in both dark and light themes using the source-built desktop app.