Repository navigation
feat(composer): toggle background task output from the whole row - #1804
Merged
Merged
Conversation
The background-tasks bar only opened a task's log through its "Output" button, so the row itself — the state dot, the command and the meta text — looked clickable but did nothing, and the click target was a few pixels wide. The row lead is now the toggle: mouse click, Enter and Space all flip the log, with aria-expanded on the interactive region. Stop and dismiss keep their own buttons outside that region, and a source test pins the split so a later refactor cannot regress the click target.
The D669 decision row landed with three cells in a four-column table in both languages, so `pnpm --filter @pi-desktop/docs test` fails on `origin/main` with a page-structure error. Fill in the rationale the decision actually records: the shallowest-8000 entry index matched nothing for a script several folders down, which is what issue #1781 reported. The table parses again.
Electron's direct fetch rejects before reaching the TLS fixture on macOS, but can stall at the same client-certificate negotiation on Linux. Bound the baseline probe and accept its abort as the platform-specific outcome, while still requiring that no HTTP request reached the fixture. This keeps the certificate discovery, proxy, redirect, and cancellation assertions running instead of letting the child process time out.
Electron's direct fetch can remain pending during client-certificate negotiation on Linux, and its AbortSignal does not reliably interrupt that platform request. Race the baseline probe against a short deadline; keep the process alive for the remaining discovery checks, then exit Electron after the fixture has been verified. A successful fetch still fails the test, and the fixture must receive no HTTP request before the certificate error or platform timeout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The background-tasks bar above the composer now toggles a task's log from
the whole row lead, not only from the "Output" button.
Why
The state dot, command and meta text look like the row's click target, but
only the small "Output" button reacted. Users expect the row itself to
expand/collapse.
Change
BackgroundTasksBar.tsx: the row lead (state dot + command + meta) is aninteractive region (
role="button",tabIndex=0,aria-expanded) thatcalls
toggleOutput. Enter/Space mirror the click.composer.css:.background-task-mainowns the row padding, fills therow (
flex: 1 1 auto), showscursor: pointer, and paints a--ds-focusfocus ring.background-tasks-bar-row-toggle.test.mjspins the clicksurface, keyboard parity and the button/row split.
Verification
tsc -p tsconfig.json --noEmit(desktop): passcheck-style-tokens.mjs: OKnode --testonbackground-tasks-bar-row-toggle,background-tasks,background-tasks-bar-visibility: 24/24 passverify:ui:*(not requested)