Repository navigation
feat(desktop): add an opt-in activity notch - #1281
Merged
Merged
Conversation
nixuuu
enabled auto-merge (squash)
November 25, 2026 20:51
nixuuu
added a commit
that referenced
this pull request
Nov 25, 2026
nixuuu
added a commit
that referenced
this pull request
Nov 25, 2026
This was referenced Nov 26, 2026
nixuuu
added a commit
that referenced
this pull request
Nov 26, 2026
## Desktop behavior - Keep the Activity notch visible while activity is available, whether or not the main Canopy window has focus. Selecting a row opens the conversation and collapses the list. - Animate the shape's width and height around the display's notch and crossfade status icons and labels. Keep the native window large enough to show the closing animation before it shrinks. Respect the system's reduced-motion preference. ## Verification - Desktop typecheck, lint on edited files, and all four activity-notch geometry tests passed locally. - Chromium exercised intermediate sizes on hover open and close, status crossfades, reduced motion, and a narrow layout. - The Electron integration fixture passed on Linux with the notch enabled for the test. It exercised focus changes, geometry, IPC, route selection, and cleanup. CI runs the fixture on macOS and Windows. Manual native pointer and camera-cutout checks are pending. - Copy audit passed. “Show activity at the top of your screen while Canopy is in the background.” became “Show activity at the top of your screen.” The description still tells users that expanding reveals project logos or initials. Fixes: #1281
nixuuu
added a commit
that referenced
this pull request
Nov 27, 2026
## Summary - Show each bot's current name and static mascot in the expanded Activity notch. - Update an existing row when the bot's name, shape, or color changes. Keep the full name in the tooltip and accessible button label. - Generate the mascot from the bot's appearance using the same drawing as the small chat avatar. The overlay receives the rendered image, row label, status, and an opaque row ID. Fixes: #1281 ## Verification - Desktop and web typechecks, lint and formatting checks for edited TypeScript, and the four notch geometry tests passed locally. - The Electron integration fixture passed on Linux with the notch enabled in the test bundle and reduced motion forced. It checked the bot's name and mascot, updates in place, IPC, and the 320 px and 496 px layouts. An initial run with full motion reached the unrelated fade-out stage and timed out there. - Native macOS and Windows smoke tests and the full repository checks are left to CI. ## Copy audit - “Bot 1” → the configured name, with “Bot” when the name is missing. This lets users identify the conversation directly. The row action still starts with “Open” and includes the written status. - Checked short, typical, and long names. Long names truncate on one line, with the full name available in the tooltip and accessible label. Status text remains visible next to the name.
nixuuu
added a commit
that referenced
this pull request
Nov 27, 2026
The macOS activity notch test killed Electron 35 s after spawning it, while the fixture's own 25 s watchdog started only once the main script ran. A cold Electron launch on an Intel runner that took over 10 s let the outer SIGKILL win, so the failure carried no stage. The Electron download and native addon build also ran inside the same test timeout. Build the bundles, the addon and the pinned Electron download in beforeAll. The fixture now prints each stage and a launched marker after the first page load. The test timestamps every line from the spawn and gives the launch 60 s and the behaviour after it 35 s, backing the fixture's 25 s watchdog, which now starts at launch. Failures report the stalled phase and the stage timeline, and a helper holding stdout after a kill no longer delays them. Related: #1281 Co-Authored-By: Claude Opus 5.5 <[email protected]>
nixuuu
added a commit
that referenced
this pull request
Nov 27, 2026
…1347) ## Changes - **Root cause:** the test sent `SIGKILL` 35 s after spawning Electron, but the fixture's 25 s watchdog only started once its main script ran. When a cold Electron launch on the Intel macOS runner took more than 10 s, the outer kill fired first. The failure then had no stage, only `Electron exited with SIGKILL`. The pinned Electron download and the AppKit addon build also counted against the same test timeout. Passing darwin-x64 runs took anywhere from 11 s to 48 s. Two diagnostic CI runs of this branch on darwin-x64 showed the launch to the first page load varying from 3.7 s to 8.5 s, while the behaviour after it took about 5 s both times. - The bundles, the native addon and the Electron download now run in `beforeAll`, outside the Electron budgets. - The fixture prints each stage and an `Activity notch launched` marker after the first page load. Its 25 s watchdog now starts at that marker. - The test reads stdout line by line and timestamps each line from the spawn. Launch gets 60 s and the behaviour after it gets 35 s, which backs up the fixture's watchdog if `app.exit` hangs. A failure reports the stalled phase and the full stage timeline. After a kill, a helper process that still holds stdout can delay the result by at most 3 s. - `docs/desktop.md` describes the two budgets and the timeline. ## Verification - Desktop typecheck, oxlint and oxfmt on the edited files passed. - I ran the harness on Linux with a fake Electron script. It passed a clean exit, reported the fixture's assertion lines, reported `did not launch` for a hang before launch and `did not finish after launching` for a hang after it, and released a pipe held by a leftover child within the grace period. - A temporary diagnostic commit printed the stage timeline in this PR's CI: darwin-x64 (two runs), darwin-arm64 and windows-x64 all passed. It has been removed from the final commit. - The macOS native check in CI is the real verification. A launch slower than 60 s, the case that originally failed, cannot be reproduced on demand. Copy audit: no UI text changed. Related: #1281 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Summary
Thanks to @sstrzeminski for suggesting the feature.
Verification
108f2d226· Desktop and web typechecks, Electron shell build, 16 focused regression tests, and lint and format checks passed.108f2d226· The Electron window and IPC smoke test passed on all three platforms. It checked inactive presentation, redacted row data, route dispatch from a renderer click, and cleanup after switching gateways or closing the main window.Copy audit
The setting label is Activity notch. Its description states when and where status appears. The list uses numbered labels and written statuses. Collapsed and expanded labels fit the measured overlay widths, and the setting was checked at 360 and 740 px.