Skip to content

Show at once what switching to a conversation does - #604

Open
thiblahute wants to merge 1 commit into
powerfooI:mainfrom
thiblahute:upstream/switch-feedback
Open

thiblahute wants to merge 1 commit into
powerfooI:mainfrom
thiblahute:upstream/switch-feedback

Conversation

@thiblahute

Copy link
Copy Markdown
Collaborator

Summary

Show at once what going to a pane, a pane's chat or a plugin popup does, instead of nothing until Herdr answers.

Why

Three switches left the page blank or unchanged until Herdr answered:

  • Going to a pane in a tab of several panes this browser had no geometry for showed nothing until Herdr sent the tab's layout.
  • A pane's chat loading its first messages showed a small box at the top of the pane; one showing what it had last gave no sign it was still catching up, and its header row stayed empty until the session's title was read.
  • A plugin popup (Herdr Float) showed nothing between its key and Herdr opening it, and stayed up, keys and all, while Herdr closed it.

What changed

  • tabLayout.ts, store.ts: without cached geometry, the pane gone to fills the tab alone until the split arrives.
  • AgentHistoryDrawer.tsx, AgentHistoryDrawer.css: a pane's chat loading its first messages fills the pane, its message box at the bottom. One showing what it had last draws a thin moving line across its top until its first read since the switch answers (static with reduced motion). The header names the workspace, dimmed, until the session's title is read.
  • store.ts (popupMoving), App.tsx, PopupOverlay.tsx, base.css: a popup shows its frame, "Opening…", as soon as its key is pressed, and goes as soon as it is asked to close, its keys back where they were. Either move ends with Herdr's popup push, the action failing, or 5 seconds. The popup's code is fetched once the page is idle, so the first popup does not wait for it.
  • FEATURES.md: the chat's loading and catching-up states.
  • scripts/check-web-assets.mjs: the initial JS budget goes from 833 to 834 KiB (833.1 KiB with this change).

Verification

  • bun test web/src/tabLayout.test.ts web/src/browserNavigation.test.ts web/src/store.test.ts: new tests "a tab of several panes with no geometry shows the pane gone to alone" and "plugin popup moves"; the browser navigation test now expects the pane gone to alone instead of no layout. All fail on main.
  • bun run format:check, bun run lint (only the existing TerminalView.tsx warning), bun run typecheck:bun, bun run build:web, bun run test:quick with an isolated HOME/TMPDIR.
  • Asset budget: initial JS 833.1/834 KiB, gzip 256.9/257 KiB, CSS 189.4/196 KiB.

Manual checks

  • In a fresh browser, go to a pane in a split tab: the pane shows at once, filling the tab, and the split follows.
  • Switch to a pane shown as a chat: a thin line runs across its top until it has caught up; a chat with nothing loaded yet fills the pane with its loading state.
  • Press Herdr Float's key: "Opening…" shows at once, then the popup. Press it again: the popup goes at once.

Going to a pane in a tab of several panes this browser has no geometry for
showed nothing until Herdr sent the tab's layout: the pane gone to now fills
the tab alone until the split arrives.

A pane's chat loading its first messages fills the pane, its message box at
the bottom, instead of a small box at the top. One showing what it had last
draws a thin moving line across its top until its first read since the
switch answers. Its header names it at once: the session's title, else the
workspace, dimmed, until the title is read.

A plugin popup (Herdr Float) shows its frame as soon as its key is pressed,
"Opening…" until Herdr has opened it, and goes as soon as it is asked to
close, its keys back where they were, while Herdr closes it; either move
ends with Herdr's answer, an error or 5 seconds. Its code is fetched once
the page is idle, so the first popup does not wait for it.

The initial JS budget goes from 833 to 834 KiB (833.1 KiB with this).
@github-actions github-actions Bot added the enhancement New feature or request label Nov 20, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant