Skip to content

fix(planning): name the waiting event in the interview header with no not-listening grace - #10013

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-8170-40195234813-1
Oct 25, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-8170-40195234813-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #8170

Summary

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

The interview page header's not-listening branch in conn() no longer waits for DEAF_AFTER (30 s). With no waiter and no lease (or a delivery stalled past ten minutes) it reads Idle at once when nothing waits on Claude, and otherwise names the waiting question or event, for example Not listening for D1: type next, or Not listening for D1: approve any prompt in the terminal, or type next while no watcher has ever polled. The lease-held working state, Live, finished, closed and offline states are unchanged, and the chips and receipt line keep their 30 s grace through deaf()/unheard().

Not verified

  • scripts/run-test-file.sh plugins/planning/surface/surface.test.sh was not run: this lane's Bash allowlist has no wrapper for it. The playwright suites (ui_c.js, ui_journey.js) were also not run here and are left to CI's surface job
  • build/lint of the edited JavaScript was not run: no allowed wrapper runs node or eslint in this lane. The edits were reviewed by reading only
  • check-affected skipped typos (not installed) and checks that run code from the checked tree (validate-plugins sub-checks, changed-skills); CI runs them

Fix

  • plugins/planning/surface/index.html: conn() returns the not-listening state for any no-waiter case left after the working branch, without deaf()'s DEAF_AFTER grace, and names up to three pending events (the delivered one first, then and N more); FIRST_WAKE now holds only the first-wake instruction
  • plugins/planning/surface/tests/ui_c.js: phase 1 asserts Idle within 5 s of load and records every pill text from load (top-frame-only MutationObserver) to assert it never reads Live; phase 4 asserts the header names D1 and updates the first-wake text; phase 6 adds an assertion that with no waiter an
  • plugins/planning/surface/tests/ui_journey.js: phase 7 pill assertion updated to Not listening for your note: type next
  • plugins/planning/surface/README.md: connection-word text updated, and notes that it names the waiting event from the first render with no grace
  • plugins/planning/skills/interview/context/surface.md: connection-word text updated; documents the immediate header state and that chips and the receipt line keep the 30 s grace
  • .changes/planning/fix-8170-interview-header-not-listening-5c1e7a93.md: new patch changelog fragment (Fixed), written by hand because new-changelog-fragment refuses a detached HEAD

Verification

The runner ran each check from the base copy against 90430f9:

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

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: All 4 changelog fragment(s) under .changes/ are valid (run after the final edits)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 9 passed, 7 skipped over 6 changed files (run after the final edits); skips were shellcheck/ruff (no changed shell or .py), typos (not installed), and checks that run code from the checked tree
  • fresh-context subagent review of the whole diff: conn() matches the old logic in every state except the intended one; it confirmed a bug where the phase 1 addInitScript also ran inside the sandboxed html visual iframe, where #pill is null, which would have failed AC37's zero-console-errors check; fi
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40195234813

Left out: the items under Not verified.

Related

#8170

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

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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

No security issues found in the incremental change. It touches only plugins/planning/surface/tests/ui_c.js, a Playwright test. The pill-history recorder now runs on a second tab opened with page.context().newPage() and closed afterward, instead of as an init script on the main page. The test only visits the local base URL.

The change adds no new input handling, secrets, authorization logic or workflow permissions. It touches no trusted path and no plugin manifest.

critical-findings: 0

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 230bca8b80385fbc6b25e2e70e782f25ab372c2d: 0 finding(s), 0 as inline comments.

Incremental review of plugins/planning/surface/tests/ui_c.js (changed since 90430f9). I found nothing to flag.

The change moves the pill-history addInitScript from the main page to a second tab, fresh, which is closed after the "never reads Live" assertion. It fixes the AC37 problem the PR describes: an init script runs in every frame, including the sandboxed visual iframes, and Chrome logs each blocked run as a console error. The main page's console listener no longer sees those errors, because the observer is installed only on fresh, which has no listener.

  • Timing: fresh waits for Idle (best-effort, .catch swallows a timeout) before the assertion reads __pills. The history is recorded from DOMContentLoaded on, so the "never Live" check still covers the whole load.
  • Shared state: both tabs share one browser context, so they share localStorage, which was cleared before the second tab opened. I found no tab-presence, BroadcastChannel or lock logic in index.html that a second tab would disturb. document.hidden is read only for notifications and arrival bookkeeping.
  • Closing issue fix(planning): drop the Live grace on a fresh interview page and name the waiting event in the header #8170, test criterion ("no watcher on first load reads not Live within 5 s of load"): still covered by the AC26 Idle check on page and the fresh "never reads Live" check.

I did not run the playwright suites, so none of this is verified by execution. The PR itself says CI's surface job covers them.

The lane's job (the skip gate, the changed-file scope and the trusted-paths check) lists no trusted-path files in this increment. The change spends no billed resource.

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

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

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 230bca8b80385fbc6b25e2e70e782f25ab372c2d.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 25, 2026
Merged via the queue into main with commit c77bdd6 Oct 25, 2026
42 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-8170-40195234813-1 branch October 25, 2026 14:33
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): drop the Live grace on a fresh interview page and name the waiting event in the header

0 participants