Skip to content

fix(chat): open turn usage popover upward - #1842

Merged
Tioit-Wang merged 2 commits into
mainfrom
fix/turn-usage-popover-up
Oct 23, 2026
Merged

Tioit-Wang merged 2 commits into
mainfrom
fix/turn-usage-popover-up

Conversation

@Tioit-Wang

Copy link
Copy Markdown
Collaborator

Change

The turn usage popover now opens upward by default. It still flips below only when there is not enough room above.

The capsule sits at the end of a completed turn, so upward placement keeps the answer and the composer visible. The unused prefer option added for the earlier below-first behavior is removed from the shared placement helper.

Validation

ode --test apps/desktop/test/context-inspector-position.test.mjs apps/desktop/test/turn-usage-capsule.test.mjs — 18 pass, 0 fail.

  • corepack pnpm --filter @pi-desktop/desktop typecheck — pass.
  • corepack pnpm lint — pass.
  • corepack pnpm check:pr-base — pass.

v_wyxgwang added 2 commits October 23, 2026 17:10
The capsule sits at the end of a completed turn, where the next answer or the composer follows immediately. Opening the breakdown upward keeps that content visible, so the capsule now uses the placement helper's above-first default and the unused below-preference option is removed.
@Tioit-Wang
Tioit-Wang merged commit 20e8e1c into main Oct 23, 2026
7 of 9 checks passed
@Tioit-Wang
Tioit-Wang deleted the fix/turn-usage-popover-up branch October 23, 2026 09:50
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