Repository navigation
fix(ui): keep interface chrome out of text selection - #496
Merged
Merged
Conversation
nixuuu
added a commit
that referenced
this pull request
Nov 10, 2026
## Change Stopping the gateway while a worker command ACK is being persisted could produce an unhandled `All fibers interrupted without error` rejection. Callers detach `coreDeliver()`, but its catch covered only sending the command: bot dispatch checks, `commandDone()` and result reconciliation could reject outside it when `ManagedRuntime.dispose()` interrupted their SQL fibers. This is a product shutdown bug. Observe the entire background delivery through the managed runtime's `runPromiseExit()`. Pure interruption ends quietly; other failures produce a bounded diagnostic without command contents. An ACK that did not commit leaves the command in the outbox for reconnect. Add a PostgreSQL row-lock regression that forces interruption during ACK persistence, checks `unhandledRejection`, verifies the pending outbox entry and restarts the gateway to confirm delivery recovers. Document the shutdown behavior. ## Verification Read attempt 1 of CI run [42820024558](https://github.com/itsoltech/canopy/actions/runs/42820024558/attempts/1). Its stack has no application frame identifying the original command. The regression deterministically produces the same error on the original code; the original three files did not reproduce the flake naturally. Completed sequential runs, one file per process, using `bun run check:tmp tests/integration/<file>.test.ts`: | File | Before | After | | --- | --- | --- | | `command-shutdown` (forced ACK interruption) | 0/30 passed; 30/30 failed with the matching interruption | 30/30 passed | | `bots-harness` | 30/30 passed | 30/30 passed | | `branch-names` | 30/30 passed | 30/30 passed | | `composer-choices` | 30/30 passed | 30/30 passed | Every completed invocation passed the temp-directory cleanup check. One baseline bot invocation ended with exit 143 and was rerun; the table counts completed invocations only. Also passed: `bun install`, `bun run typecheck`, `bun run lint`, `bun run format:check`. The implementation and regression received a self-review. Full unfiltered tests, `gen:check` and the web build were not run locally under the workspace verification limits; CI covers those gates. No specific recent introducing PR was established; #496 is context only. Related: #496
This was referenced Nov 13, 2026
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.
App chrome currently participates in drag selection and page-wide select-all. This makes sidebar rows, panel labels and controls highlight alongside conversation text. Default the web/desktop shell to non-selectable text and opt reading surfaces and copyable values back in at shared boundaries.
Selection rules:
VirtualFeedselects its mounted rows, excluding the sidebar, side panel and composer. Virtualized/unmounted history and collapsed details are not included. Editable targets retain their own select-all; outside the feed, browser selection behavior applies to selectable surfaces.selectablefrom keyboard shortcut labels; retain it for conversation content, paths, branches, URLs, fingerprints, pairing codes, versions, errors and diagnostics. No native configuration changes. Polish conventions added todocs/ui-scale.md.Validation:
bun install,bun run typecheck,bun run lint,bun run format:check, andbun run --filter @canopy/web build; required code checks rerun after rebasing onto currentdev.bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactive; full JSON unchanged, including after rebase. iOS:6ddec9ef559ee0095ac33e94ff9418a942053b17; Android:5f6eae3ab278f1cd543e9ed763f923a319b65ec9.Evidence stays outside the repository:
/var/tmp/canopy-text-selection/screenshots.txtlists every PNG. Representative files:message-cite-light-desktop.png,code-cite-light-desktop.png,quote-saved-light-desktop.png,branch-light-desktop.png,text-drop-dark-desktop.png,settings-dark-desktop.png,thread-light-phone.png,thread-dark-phone.png, andpanel-dark-phone.pngin that directory. Disposable stack and browser were stopped.Copy audit: none (no UI copy changes).