Repository navigation
fix(web): use smaller text in the sidebar - #147
Merged
Merged
Conversation
nixuuu
added a commit
that referenced
this pull request
Nov 5, 2026
`computer-relay.test.ts` ("explicit reciprocal sharing … without a
routing loop") failed on CI in #146 and #147 (attempt 1), on line 258.
After the reciprocal share was turned off, W's mirror state existed
again as `{ cursor: "", overview: null }`.
**Cause:** a race on P2.
1. P1 revokes the grant and cancels the relayed `WatchThreadMirror`
stream before the new catalog reaches P2.
2. P2 still has W as `both`, so the next emit starts a new mirror task.
3. The new catalog then deletes W's `both` row, with its mirror, and
inserts W as `origin`.
4. The late `INSERT INTO computer_mirror_state` lands after that. The
new `origin` row satisfies the foreign key, so the empty state comes
back.
Before #36, a removed peer stayed removed and the late insert failed on
the foreign key.
**Fix**
- `mirror.ts` creates mirror state only for a direct peer or a relay
`home`/`both`. The check runs in the same statement, with the peer row
locked. Otherwise `consume` ends as superseded.
- `bot-mirror.ts` checkpoints use the same role check.
- The test adds a check that does not depend on timing: a late `consume`
for the revoked home is rejected and leaves no state. No assertion is
changed; no sleeps, retries or longer timeouts.
**Evidence**
- The new check fails on the old code (1/1) and passes with the fix:
15/15 runs under load.
- The other mirror suites pass: `thread-mirrors.test.ts` and
`linked-agents.test.ts`, 32/32.
Fixes: #36
This was referenced Nov 13, 2026
nixuuu
added a commit
that referenced
this pull request
Nov 27, 2026
## Summary - Read the worker snapshot once more when the accepted report changes during local skill preview on the same connection. Validate the original revision and copy token against the new snapshot before contacting the worker. - Add an integration test that accepts an identical report during the read and checks the previewed bytes. Update the agent environment documentation. Push CI [#146](https://github.com/itsoltech/canopy/actions/runs/45864889405/job/140065136848) and [#147](https://github.com/itsoltech/canopy/actions/runs/45870599390/job/140084790023) reported the same `FAILED_PRECONDITION`. The controlled regression reproduces that error. The original CI logs do not identify which validation condition rejected those requests. ## Verification - The new integration test failed with `FAILED_PRECONDITION` before the fix and passed afterwards. - Four focused integration cases passed via `check:tmp`, including rejection of an on-disk change and preview through a linked computer. - Lint and formatting passed for the two edited TypeScript files. `git diff --check` passed. - The remaining repository checks run in GitHub CI. Fixes: #1303
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.
The sidebar text was out of proportion with the rest of the UI. Every item is now about 1 px smaller.
navigation/sidebar-density.cssonAppSidebar, the same pattern assettings/density.css. Menus, hover cards and dialogs opened from the sidebar keep the normal app sizes.Checked at 1440, 768 and 390 px, light and dark, with long names, pinned and working sections, chips and bots.