Skip to content

fix(desktop): keep context gauge stable at the transcript tail - #4975

Open
me2seeks wants to merge 1 commit into
apache:mainfrom
me2seeks:fix/4973-context-gauge-tail-jump
Open

fix(desktop): keep context gauge stable at the transcript tail#4975
me2seeks wants to merge 1 commit into
apache:mainfrom
me2seeks:fix/4973-context-gauge-tail-jump

Conversation

@me2seeks

@me2seeks me2seeks commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Keep the composer context gauge visually stable when the transcript reaches the live tail.

The tail transition fades the scroll-to-bottom control inside the same filtered dock surface as the composer. Chromium can re-raster that shared surface even though the gauge, model-control group, and composer DOM boxes never move; the thin gauge paths then visibly hop by a device pixel. This patch adds paint containment and a compositing hint to the scroll button’s existing 32px transition container, limiting the opacity repaint to that control.

The existing reader-scroll Storybook scenario now includes a real context gauge and asserts both sides of the contract: the scroll-button paint boundary is present, and the gauge SVG stays within 0.25px while returning to the tail.

Fixes #4973

Verification

  • npm --workspace @maka/desktop run typecheck:stories
  • node --test packages/ui/dist/__tests__/composer-context-usage.test.js (2/2)
  • npm --workspace @maka/desktop run build-storybook
  • node scripts/storybook-visual-smoke.mjs apps/desktop/storybook-static (312 stories, 339 theme renders)
  • npm run check:renderer-architecture -- --base origin/main (101/101 fixtures; check passed)
  • npm run astryx:surface-inventory
  • npm run lint
  • npm run format:check
  • git diff --check

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool and scope: Codex — diagnosis, implementation, browser verification, and test coverage.

Checklist

  • Tests cover the change and fail without it
  • Lint, format, typecheck, and affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — the context gauge no longer visually jumps during the tail transition
  • No

@github-actions github-actions Bot added the effort/S Under 100 readable lines label Sep 7, 2026
@me2seeks
me2seeks force-pushed the fix/4973-context-gauge-tail-jump branch from fdd155f to 6572edb Compare September 7, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/S Under 100 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(desktop): context usage control jumps when transcript reaches the bottom

1 participant