Repository navigation
feat(web): show ci check notes and watch calls in the timeline - #804
Merged
Merged
Conversation
The platform's CI check notes (turn trigger pr_checks, or a note steered into the running turn) render as compact system lines on web and mobile: what happened, a link to the pull request and a followed commit. watch_pr_checks, list_pr_watches and cancel_pr_watch get bus card titles, and a watch call shows its pull request, when the agent hears back and until when. Co-Authored-By: Claude Opus 5.5 <[email protected]>
nixuuu
marked this pull request as ready for review
November 15, 2026 08:49
nixuuu
added a commit
that referenced
this pull request
Nov 15, 2026
Stage 3 of 3 (stack #805, top, on #804). The thread's pull request list shows which pull requests an agent is watching. ## What it does - **New field.** `PullRequestLink.watched_until` (additive proto field 8) holds the latest active `watch_pr_checks` expiry for that thread and pull request. - **Revision.** Starting or ending a watch bumps `threads.pull_request_revision` and broadcasts the thread, so the web and mobile lists, keyed by that revision, reread on their own. - **Web.** An eye icon sits before `#number` in the row's aside. Its tooltip and accessible label read "Agent watches checks until 10:47 AM". The number and the checks icon stay at the trailing edge; only the title truncates more. - **Mobile.** The same icon. The text is in the row's accessibility label and in the long-press toast. - **Docs.** `agent-bus.md` describes the marker. `github.md` now frames `watch_pr_checks` as Canopy sharing the check state it already reads for the PR panel: no token, connection or GitHub operation for the agent. There is no Stop button in the UI; the agent stops a watch with `cancel_pr_watch`. ## Copy audit (docs/copy.md §8) | Before | After | Reason | |---|---|---| | (new) | `Agent watches checks until 10:47 AM` (tooltip and accessible label) | One fact, sentence case, local time format. The eye icon is never the only cue. | ## Verification - **Ran locally:** - `bun run check:tmp` on `tests/integration/pr-check-watches.test.ts`, now also checking `watched_until` while the watch is active and gone after it ends, plus `github-pr-linked.test.ts`. - Gateway, mobile and web typecheck, and lint and format on the changed files. - **Looked at in Chromium:** the PR rows with short, typical and long titles, light and dark themes, at 1280 px and 390 px wide. This used temporary gallery fixtures with the app shell bypassed, not committed. Everything else is left to CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
nixuuu
added a commit
that referenced
this pull request
Nov 15, 2026
## Change Proxy accounts with undetectable plans can now use a manual plan in Settings → Proxies → Accounts on web and mobile. For example, Claude Ultra counts as ×10 and Team as ×5. Automatic keeps detection as the default; a manual choice takes precedence over later detection until reset, with a subtle “Set manually” hint. - Migration 0149 stores the choices on the owner-scoped proxy row, keyed by a hash of provider + upstream stable ID (fallback: auth_index). Missing accounts are ignored. Refresh and gateway restarts retain the choices; deleting the proxy deletes them. - The effective plan reaches ListProxies, overview updates and the shared weighted capacity calculation used by the sidebar indicator, usage popover and mobile sheet. Detection remains separately available. - Additive RPC and account fields; regenerated contracts. Team already existed in the enum, so its numeric value is preserved. Its Claude ×5 weight is explicitly documented as a user-provided equivalence dated 2026-11-15, not independently confirmed by Anthropic. - Claude and Codex offer the requested known plans. Grok currently has no known weights in the table, so its picker offers Automatic only. No fork-specific multiplier or plan field was added. ## Verification Local checks passed: - `bun run gen`. - `bun run check:tmp` for `tests/integration/proxy-account-plans.test.ts`, `tests/integration/proxy-accounts.test.ts`, gateway `management-plan.test.ts` and `management.test.ts`, domain `proxy-capacity.test.ts`, and DB `schema.test.ts`: 48 tests passed across the focused runs, with no temporary files left. The new integration test covers set/clear, later detection precedence, weighted capacity, foreign-owner read/write refusal, refresh with changed email/runtime index, and removed accounts. - Typechecks for gateway, contracts, db, domain, mobile and web; Svelte reports 0 errors and 0 warnings. Lint and formatting on edited files; diff/content/link review. - Real browser review using an isolated remote gateway/web and PostgreSQL plus fake management accounts: light/dark at desktop (1280 px), phone (390 px) and narrow phone (320 px). Short, typical and long emails remain blurred; dropdown/sheet selection, reset, Refresh, and a failed save with rollback/retry were checked. Review processes and container are cleaned up. Screenshots stay outside the repository. Rebased onto current dev after #803, #804, #806 and #807. Renumbered the migration to 0149 and regenerated the combined proto. Focused tests and affected typechecks were repeated. The web row keeps the provider mark, blurred identity and status on its first line. A muted, borderless kit trigger occupies one 20 px plan line below, followed inline by “· Set manually”. There is no empty hint line. Switching to Automatic leaves row height unchanged on desktop and at 320 px. Browser shots were refreshed at desktop, 390 px and 320 px in light/dark with short and long identities. The final visual-only change passed web typecheck and edited-file lint/format; the 48 focused backend tests remain valid for unchanged backend inputs. Full frozen install, gen:check, repository-wide typecheck/lint/format, complete check:tmp suite and selected builds remain with CI. No UI test suite was added. Native mobile was typechecked but not run on an iOS/Android device. ## Copy audit — docs/copy.md §8 | Before | After | Reason | | --- | --- | --- | | Unknown plan with no way to set it | Automatic · Unknown plan; provider plan options with × multipliers | Offers a concrete choice without guessing detection. | | Repeated plan label beside the picker | One selected plan in the picker | One fact once; account identity keeps its space. | | — | Set manually | Short, subtle status; meaning does not rely on colour. | | — | Saving plan… | Present ongoing action with the standard ellipsis. | | — | Could not save the plan. Choose it again to retry. | What happened, followed by an action; no transport details. | Checklist 1–10 passed: short active sentences, sentence case and punctuation; existing plan/account glossary; menu entries are selection values, not commands; errors end with an action; no new empty states, duplicate facts, jargon, or “soul” copy. Automatic preserves honest unknown detection. Short/typical/long identities checked at desktop and phone widths with blur intact. Accessible “Account plan”, status text and numbers carry meaning without colour or position. No failing items. Related: #763
This was referenced Nov 16, 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.
Stage 2 of 2 (stack #805, top, on #803). Timeline UI for the CI check notes and watch tool calls, on web and mobile.
What it does
pr_checksturn, or a CI note steered into a running turn, renders as one compact system line per note. The line says what happened, links to the pull request, and names the commit when a new one was followed. Failed and passed lines get a rose or emerald icon; the text never relies on colour alone.watch_pr_checks,list_pr_watchesandcancel_pr_watchget bus card titles and icons. A watch card shows the pull request, when the agent hears back, and until when. When every check had already passed, the title is "Checked CI checks".@canopy/domain/pr-check-display. The dev gallery (/dev/tool-calls) gains watch call fixtures.Copy audit (docs/copy.md §8)
Watching CI checks/Starting to watch CI checks/Tried to watch CI checksChecked CI checksListed CI check watches,Stopped a CI check watchitsoltech/canopy#792 · Tells this agent when a check fails or all checks finish · Until 11:12 AMtoLocaleTimeStringAll checks already passedtest (3/4) failed,2 of 14 checks failed,All 14 checks passed,lint finishedPull request merged,Pull request closed,No checks reported in 10 min,Stopped watching checks at the time limit,Stopped watching checks without access,Stopped watching checks of an unlinked pull requestNew commit 1a2b3c4Checked with short, typical and long repository names. A long name wraps cleanly at phone width.
Verification
/dev/tool-callsgallery.TurnInputwith fixture turns, added to the gallery only for the screenshots and not committed.svelte-check, mobile and domain typecheck, and lint and format on the changed files.Everything else is left to CI.
🤖 Generated with Claude Code