Skip to content

fix(web): use smaller text in the sidebar - #147

Merged
nixuuu merged 1 commit into
devfrom
fix/sidebar-compact-text
Nov 5, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/sidebar-compact-text

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 5, 2026

Copy link
Copy Markdown
Member

The sidebar text was out of proportion with the rest of the UI. Every item is now about 1 px smaller.

Element Desktop (≥640 px) Phone
Thread title 14/24 → 13/20 16/24 → 15/24
Project line, status, meta, footer 12/20 → 11.5/20 14/20 → 13/20
Section headers 12 → 11.5 14 → 13
Search field 14 → 13 16 (unchanged, so iOS doesn't zoom)
Bot rows: name / preview / time 14 / 14 / 12 → 13 / 13 / 11.5 16 / 14 / 14 → 15 / 13 / 13
  • Scope: a sidebar-only density override, navigation/sidebar-density.css on AppSidebar, the same pattern as settings/density.css. Menus, hover cards and dialogs opened from the sidebar keep the normal app sizes.
  • Why not -2 px: I compared it too. On phones its 12/11 px felt cramped and the meta text got hard to read.

Checked at 1440, 768 and 390 px, light and dark, with long names, pinned and working sections, chips and bots.

@nixuuu
nixuuu merged commit 0c5c053 into dev Nov 5, 2026
15 of 17 checks passed
@nixuuu
nixuuu deleted the fix/sidebar-compact-text branch November 5, 2026 08:12
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant