Skip to content

fix(planning): show Live on the interview page only while a watcher waits - #9658

Merged
kyle-sexton merged 5 commits into
mainfrom
work-resolve-issue/issue-8169-40100501814-1
Oct 24, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
work-resolve-issue/issue-8169-40100501814-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #8169

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The interview page header now reads Live only when the listener reports at least one waiter. With a held lease or a bridge-reported reading window and no waiter, it shows a distinct working pill, Claude is working on <id>. Chips and the receipt line still use deaf()/unheard() and are unchanged.

Not verified

  • The browser suites (plugins/planning/surface/surface.test.sh) were not run here, so the new phase 6 assertions are untested. The Live check relies on api/wait?after=handled staying open while D1 is unhandled, which the subagent could not confirm and which could be flaky. Left to the PR's surface CI
  • No UI case covers the bridge reporting reading with no lease and no waiter. The code branch exists in conn(), but the suite has no way to release the lease and keep the reading window open.
  • The rest of surface.test.sh and the python tests were not run.
  • Review ran by a local subagent because review-venue.txt was absent.

Fix

  • plugins/planning/surface/index.html: conn() returns a working pill when no waiter waits and a lease is held or listener.state is reading; Live requires waiters > 0; the pill title explains the working state
  • plugins/planning/surface/tests/ui_c.js: phase 6 asserts the working pill with the lease held and no waiter, and Live while a waiter is present
  • .changes/planning/issue-8169-header-live-working-7c4e2b91.md: planning patch fragment (written by hand, because HEAD is detached and new-changelog-fragment needs a branch)

Verification

The runner ran each check from the base copy against efb562e:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

Left out: the items under Not verified.

Related

#8169

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 148b36b99e4ae7cbe3283fe62e99c9ca19e446ed: 0 finding(s), 0 as inline comments.

Incremental security review of the changes since b0e9cd1: no security issues found.

The changes are:

  • A one-condition tweak to the interview page's connection pill in index.html. It adds && !stalled() so a delivery unhandled for ten minutes reads Not listening: type next even while the lease is held.
  • A docs sentence in surface.md and a changelog line.
  • A new browser test case in ui_c.js, with its check count bumped from 185 to 186 in surface-checks.sh.

None of this touches authentication, authorization, injection surfaces, tokens or secrets, plugin manifests, or a trusted path. The test intercepts api/state only inside its own Playwright page and adds no network exposure. The pill text still comes from existing subject(d) and constant strings, and the diff adds no new HTML sink. The PR context was read as data and contains no embedded directives. No instruction-surface guardrail is removed: the change narrows when the "working" pill shows, and makes the stalled warning more visible.

critical-findings: 0

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 148b36b99e4ae7cbe3283fe62e99c9ca19e446ed: 0 finding(s), 0 as inline comments.

Incremental review of the changes since b0e9cd1, covering the changelog fragment, surface.md, index.html, surface-checks.sh and ui_c.js. I found nothing to report.

  • Header fix. conn() in plugins/planning/surface/index.html now skips the working pill when stalled() is true. I traced a held lease with no waiter and a delivery unhandled for more than 10 minutes. unheard() is true because stalled() is true. pending() is non-empty, since stalled() needs a pending delivered event. neverPolled() is false because a lease is held. The result is ["idle", "Not listening: type next"]. working() returns "Claude has not handled D1 yet" for the same state, so the header and the work line agree. Without a lease or reading window, behaviour is unchanged.
  • New test. The synthetic D1 event gets seq n+1, which is above handledSeq, so isHandled is false and it stays pending. It is also the only delivered pending event, because the earlier D1 event is already handled. The route-intercept pattern matches the existing one in ui_journey.js:148. The pill idle class matches how ui_journey.js asserts the same state.
  • Check count. surface-checks.sh raises the c group from 185 to 186, which matches the one new ok() call.
  • Docs and fragment. The surface.md and changelog text match the new behaviour. The fragment's bump: patch is unchanged and fits a fix.
  • Not run. I did not run the browser suites, so the new test's pass/fail is unconfirmed by me.
  • Closing issue fix(planning): show Live on the interview page only while a watcher waits #8169. The ten-minute stalled state added in this increment doesn't conflict with its criteria. The unit "No waiter and no lease: today's texts apply" is preserved.
  • Spend. Nothing here adds model or API spend.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head b0e9cd18e32c0700b57706f936d31c8dc4de2549. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate holds it on its risk score (evidence-unbound:claude-review: not bound: run-not-success)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 2331c1d91705428d9f045d1d924c6d0d39546932; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/planning/surface/index.html Resolved
Comment thread plugins/planning/surface/index.html Resolved
Comment thread plugins/planning/surface/tests/ui_c.js Resolved
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on 2331c1d.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 24, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a review finding is uncertain or deferred, so a person decides it.

  • Reason: feedback-uncertain
  • Resume key: 2331c1d91705428d9f045d1d924c6d0d39546932 (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=9658 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=9658 -f activity=address-feedback

kyle-sexton and others added 2 commits October 24, 2026 13:20
The header's working branch required a delivered, unhandled event while the
bridge reported the session reading, so a session that handled its event and
kept working fell to Idle or Not listening. Gate on the reading state alone,
as #8169 asks, and reword the pill tooltip for the case with no event.

ui_c phase 6 now releases the lease after D1 is handled and checks the
header reads Claude is working once the bridge reports reading with no lease
and no waiter. Journey phase 7 waits out phase 1's reading window before its
Idle check. surface.md documents Live and the working state.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q9bziHugSS2AXBhM2ryQff
@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 24, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on b0e9cd18e32c0700b57706f936d31c8dc4de2549; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/planning/surface/index.html Resolved
…very

The working state in conn() ran before unheard(), so a lease kept alive
by polls with no waiter showed "Claude is working on Qn" while the work
line read "Claude has not handled Qn yet". The working branch now also
requires !stalled(), so after ten minutes the header reads
"Not listening: type next" again, lease or not. A ui_c phase 6 check
covers the case; surface.md and the fragment say so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 24, 2026
Merged via the queue into main with commit 7b8d904 Oct 24, 2026
40 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-8169-40100501814-1 branch October 24, 2026 18:30
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.

fix(planning): show Live on the interview page only while a watcher waits

1 participant