Skip to content

feat(desktop): add an opt-in activity notch - #1281

Merged
nixuuu merged 2 commits into
devfrom
feat/desktop-activity-notch
Nov 25, 2026
Merged

nixuuu merged 2 commits into
devfrom
feat/desktop-activity-notch

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add the opt-in Activity notch in Settings → General → Notifications on Canopy Desktop.
  • Show active work, requests for approval or an answer, errors, and unread results while the main window is in the background. Clicking the pill expands the list. Clicking a row opens the corresponding thread or bot chat.
  • Use numbered labels and status text in the overlay. Keep conversation routes in the main process.

Thanks to @sstrzeminski for suggesting the feature.

Verification

  • Linux · 108f2d226 · Desktop and web typechecks, Electron shell build, 16 focused regression tests, and lint and format checks passed.
  • Linux · Chromium · Verified the setting, reconnect behavior, collapsed and expanded views, scrolling, and reduced motion with synthetic data. A headless Electron diagnostic exercised IPC, routing, and cleanup.
  • macOS arm64, macOS x64, Windows x64 · 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.
  • macOS and Windows remain experimental. Interactive verification still needs physical clicks with another app active, focus and app switching, display changes, macOS menu bar and Spaces behavior, and Windows DPI scaling and last-window behavior.

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.

@nixuuu
nixuuu enabled auto-merge (squash) November 25, 2026 20:51
@nixuuu
nixuuu merged commit 6a74c37 into dev Nov 25, 2026
21 checks passed
@nixuuu
nixuuu deleted the feat/desktop-activity-notch branch November 25, 2026 21:00
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]>
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