Skip to content

fix(app): drop model details tooltip from the composer model chip - #59108

Merged
usrnk1 merged 6 commits into
devfrom
fix/model-tooltip-default-delay
Oct 27, 2026
Merged

usrnk1 merged 6 commits into
devfrom
fix/model-tooltip-default-delay

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Removes the model details card (provider, context, modalities, tools) that popped up when hovering the composer's model chip. The details still show where they're useful: when hovering models inside the model picker.
  • The chip now shows the same plain Choose model ⌘' tooltip as its neighbouring composer controls, with the shared default tooltip delay (this also drops the 750 ms override from fix(app): match model tooltip delay to tab previews #58056).
  • Updates the two e2e tests that asserted the details card on chip hover.

Verification

  • bun run typecheck in packages/app passes.
  • Could not run the updated Playwright tests locally (Chromium can't start threads on the shared host); relying on CI.

Requested by: @jayair (Jay via Slack)

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The change looks correct. Removing the openDelay={750} override means the composer model tooltip now uses the shared Tooltip default (openDelay={400}, with skipDelayDuration={300} unchanged), set in packages/ui/src/overlays/tooltip/tooltip.tsx. I checked this by reading the code; I didn't run it, because hover timing in the web app needs a browser.

Public API: unchanged.

No concerns.

@opencode-agent
opencode-agent Bot force-pushed the fix/model-tooltip-default-delay branch from aaf1bf1 to ce2234e Compare October 26, 2026 00:37
@opencode-agent opencode-agent Bot changed the title fix(app): use default tooltip delay for composer model tooltip fix(app): drop model details tooltip from the composer model chip Oct 26, 2026

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The earlier review had no open points. The new commits look correct: the chip tooltip is now always the plain title + keybind, and the code that is no longer needed was removed cleanly (ModelDetails and createModelUsage are still used by the model picker). tsc --noEmit passes in packages/app. I didn't run the Playwright specs or look at the tooltip in a browser, so before/after screenshots of hovering the chip would help reviewers.

Public API: unchanged.

Minor: in composer.spec.ts, the new chip-text checks (toContainText("Console Model") and not.toContainText("Anomaly")) check very little, because the chip never shows the workspace name. They can be dropped to keep the test focused on the picker menu.

Base automatically changed from beta to dev October 26, 2026 03:57
@opencode-agent
opencode-agent Bot changed the base branch from dev to beta October 26, 2026 12:17

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The new commit is only a merge of beta. This pull request's own changes are the same as at the last review, so I have nothing new to add.

Public API: unchanged.

@usrnk1 usrnk1 self-assigned this Oct 27, 2026

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My earlier note is addressed: the weak chip-text checks in composer.spec.ts are gone, and the test still goes on to the model picker. Nothing else changed.

Public API: unchanged.

@usrnk1
usrnk1 changed the base branch from beta to dev October 27, 2026 09:03
@usrnk1
usrnk1 enabled auto-merge (squash) October 27, 2026 19:57
@usrnk1
usrnk1 merged commit 2cc6d4f into dev Oct 27, 2026
20 checks passed
@usrnk1
usrnk1 deleted the fix/model-tooltip-default-delay branch October 27, 2026 20:28
alsuren pushed a commit to alsuren/opencode that referenced this pull request Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants