Files
PaperClipAI/ui
Devin FoleyandPaperclip 1f817b495c fix(ui): hide monitor waiting notices during active runs (#23822)
## Thinking Path

> - Paperclip manages work performed by AI agents.
> - Task monitors schedule later checks.
> - A saved schedule can remain present during a new run.
> - The UI calls that state a wait even while the agent works.
> - This change gives the current run priority over monitor notices.
> - Users see the monitor again after the run ends.

## Linked Issues or Issue Description

Refs #19519, which added the active-run wait message. This change
removes that message during execution. Searches found no open duplicate,
and the roadmap has no overlapping item. The small SSH fixture repair
below addresses a CI regression introduced on master by #14309.

**What happened?**

A task showed a running agent and a monitor waiting notice at the same
time. The notice said the agent was waiting or saving work, based only
on the presence of a run.

**Expected behavior**

Show the current run without monitor waiting notices. Keep the saved
schedule. Restore both monitor surfaces after execution ends, if the
monitor remains scheduled.

**Steps to reproduce**

1. Schedule a task monitor.
2. Start a run on the same task before its next check.
3. Inspect the task banner and composer while the run works.
4. End the run and confirm the retained monitor appears again.

**Paperclip version or commit**

Reproduced against master at dfe392dada
with mounted production components.

**Deployment mode**

Source checkout on macOS arm64 with Node v25.6.1. Browser checks use
disposable local servers. No deployment is part of this PR.

## What Changed

- Hide the banner and composer monitor notice while a task run is queued
or running. Use the existing live-run state; add no request.
- Restore countdowns, PR review links, and check controls after
execution ends. Keep workspace and usage retry waits visible.
- Add mounted regressions for future, due-now, overdue, review, and
retry states. Update the product and monitor documentation.
- Pass the stdin command envelope to the new dash SSH test from master.
This one-line repair changes only its test input.
- Make the connection-review race fixture drop exactly one initial
interaction snapshot, through either bootstrap or the standalone
endpoint. Preserve all other bootstrap data and keep dropping the live
creation event. Keep the approval assertions, timeouts, and retry
settings unchanged.

## Verification

Current head: `cfdbbb22839`.

- Red-green: four new monitor regression cases failed against the
original implementation, then passed with the fix.
- From ui/: `pnpm exec vitest run
src/components/IssueMonitorBanner.test.tsx
src/lib/issue-monitor.test.tsx
src/pages/IssueDetail.agentChatPanel.test.tsx
src/pages/IssueDetail.mobile.test.tsx` passes: 44 tests in four files,
including after the master merge.
- UI and adapter-utils typechecks pass. `git diff --check` passes.
- The new monitor transition test initially crossed a real countdown
boundary. Its clock is now fixed. The fresh worktree initially lacked
plugin SDK declarations; building them restored the UI typecheck.
- The focused dash regression reproduced CI exit 125 without stdin.
Passing `target.stdinPrefix` makes it pass. No SSH runtime code changed.
- Both stale chat-settings grant/revocation cases pass locally with two
Chromium workers. The original [e2e shard 13
failure](https://github.com/paperclipai/paperclip/actions/runs/47463601089/job/145495043379)
remains unexplained; the same shard passed in the next CI run without a
settings change.
- The connection-review decline journey passes in Chromium with trace
capture: `PAPERCLIP_E2E_PORT=43984 PAPERCLIP_E2E_SKIP_UI_BUILD=1 pnpm
exec playwright test --config tests/e2e/playwright.config.ts
tests/e2e/connection-reviews.spec.ts --grep 'connection review: decline'
--workers=1 --trace=on --reporter=line --output=<scratch>`. E2E
test-project typecheck also passes.
- Before that fixture repair, the local trace shows bootstrap at
02:08:50, an empty first recovery poll at 02:09:11, and the review
arriving on the second poll at 02:09:31. The corrected trace shows
bootstrap at 02:10:29 and the review on the first poll at 02:10:50. The
original fixture was consuming a recovery read rather than the initial
snapshot. The complete decline and continuation assertions pass with the
correction.
- The [first CI
run](https://github.com/paperclipai/paperclip/actions/runs/47463601089)
failed in the SSH fixture and the chat-settings case. The [second run on
e9fced7](https://github.com/paperclipai/paperclip/actions/runs/47464395894)
passed all general tests, build, typecheck, Runner checks, and 15
browser shards. Its [connection-review
failure](https://github.com/paperclipai/paperclip/actions/runs/47464395894/job/145499941920)
is addressed by the fixture correction above. These original failures
remain part of the evidence; later passes do not erase them.
- Greptile scored the current head
cfdbbb2283 at 5/5 with no actionable
findings or open threads. Required CI passes on this head.
- The token scan reports three existing violations: two task-number
strings in transcript-adapter.test.ts and one grid class in
AdapterLoginChrome.tsx. Those files and the scanner match the base
branch. This PR adds no visual values.
- Broad local selection was inspected with `pnpm verify --explain`; that
command did not execute the selected suite. Final CI supplies the
broader coverage. Added lines and PR text were scanned for secrets,
private endpoints, personal data, and run artifacts before push.

Final qualification for cfdbbb2283:

- [Final CI
run](https://github.com/paperclipai/paperclip/actions/runs/47466120239):
80 successful checks and four skipped checks, with no failures or
pending checks. Both required aggregates, ci / verify and ci / e2e,
pass. All 16 browser shards pass, including the repaired
connection-review journey.
- Greptile's completed check and 5/5 summary both name this exact head.
No review comments or unresolved threads remain.
- GitHub reports MERGEABLE and CLEAN against master. The worktree is
clean. This PR is ready to merge; it has not been merged or deployed.

## Risks

Low risk. Delayed live-run query updates can briefly delay notice
transitions. PR review links inside these notices are hidden during
execution and return afterward. The two CI repairs affect test fixtures
only. Schedules, execution admission, ownership, authorization, approval
behavior, and schema stay unchanged. Required CI passes on this head.

## Model Used

OpenAI Codex, gpt-6.1-sol, with xhigh reasoning effort, repository
inspection, code editing, shell tools, and test execution.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [x] All Paperclip CI gates are green
- [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

---------

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-12-04 18:35:01 -08:00
..
…

@paperclipai/ui

Published static assets for the Paperclip board UI.

What gets published

The npm package contains the production build under dist/. It does not ship the UI source tree or workspace-only dependencies.

Storybook

Storybook config, stories, and fixtures live under ui/storybook/.

pnpm --filter @paperclipai/ui storybook
pnpm --filter @paperclipai/ui build-storybook

Typical use

Install the package, then serve or copy the built files from node_modules/@paperclipai/ui/dist.

Editor dependency identity

Keep the root and workspace overrides for @codemirror/state, @codemirror/view, and @lezer/common aligned. CodeMirror requires shared extension identity, while Lezer parsers and syntax highlighters require shared NodeProp IDs. Multiple Lezer copies can crash code-block highlighting with tags is not iterable. src/lib/codemirror-single-instance.test.ts checks the installed dependency graph and highlights sample code through the editor's real language dependencies. GitHub Actions owns regeneration of pnpm-lock.yaml.