Skip to content

Wait for the evidence turn to render before unfolding it (e2e race) - #297

Merged
BunsDev merged 2 commits into
mainfrom
cf5-evidence-race
Oct 18, 2026
Merged

BunsDev merged 2 commits into
mainfrom
cf5-evidence-race

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #287 (CF-5) and #284 (CF-4). This is a test-only race fix.

Failure: #286's macOS run failed all three conversation-evidence tests: the $ ls row was "not visible", and the truncation note was "not found".

Cause: beforeAll sends the evidence turn to the window, then immediately clicks the last turn-label to unfold the turn's work. If the window hasn't rendered that turn yet, the last header is the earlier "start" turn's. The evidence turn stays folded, so its successful tool row is hidden. Failed and denied rows never fold, which is why those clicks worked.

Reproduction: moving the click ahead of the send fails the same three tests with the same errors.

Fix: wait until the turn has rendered (two headers here; the final answer visible in the theme test), click, then assert aria-expanded="true". typed-turns.spec.ts's theme test had the same race and gets the same fix. The other turn-label clicks follow assertions that already wait for the turn.

Checks: conversation-evidence with --repeat-each 3 passed 12 of 12, and conversation-evidence plus typed-turns passed 9 of 9.

Coven-Harness: Claude Code / claude-opus-5-5

@vercel

vercel Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 18, 2026 2:32pm UTC

Request Review

@BunsDev

BunsDev commented Oct 18, 2026

Copy link
Copy Markdown
Contributor Author

#298 fixes the same race on CF-2's branch. As of a464d72, this PR's conversation-evidence.spec.ts is byte-identical to #298's, so main and cf2-claude-lifecycle merge without a conflict whichever lands first. This PR also keeps the separate typed-turns theme-test fix.

Locally, conversation-evidence plus typed-turns pass 9 of 9.

conversation-evidence sends a turn to the window and at once clicked the last turn header to
unfold its work. When the window had not rendered that turn yet, the last header was the
first turn's, so the evidence turn stayed folded and its successful "$ ls" row was hidden.
All three tests then failed, as on #286's CI run. Clicking before the send reproduces it.

Both specs now wait until the turn has rendered, and check that it unfolded. That covers
conversation-evidence and the typed-turns theme test, which had the same race.

Coven-Harness: Claude Code / claude-opus-5-5
The CF-2 owner fixed the same race in #298 on cf2-claude-lifecycle: each test launches
its own app, waits for the turn's final item, and unfolds that turn's disclosure button.
This file now matches #298 byte for byte, so main and CF-2's branch merge without a
conflict. The typed-turns theme fix stays.

Coven-Harness: Claude Code / claude-opus-5-5
@BunsDev

BunsDev commented Oct 18, 2026

Copy link
Copy Markdown
Contributor Author

Coordination note from the #273 tracker session: #297 and #299 compose cleanly in either order. Both edit e2e/conversation-evidence.spec.ts. #299 adds a test-only CODEX_HOME to the setup, one more cited reply, and two memory-citation tests.

I trial-merged cf5-evidence-race into #299's head 3111e72; there were no conflicts. The combined conversation-evidence.spec.ts passed 6 of 6, with #297's per-test beforeEach. I then aborted the trial merge; nothing was pushed to either branch.

BunsDev added a commit that referenced this pull request Oct 18, 2026
Val decided on #290. The In flight entry for native conversation fidelity
listed open PRs by number, and the list went stale within hours. It already
named #291 (merged into #286) and missed #295, #297, #298 and #299. The entry
now says the tracker's child issues link their open PRs, which GitHub keeps
current.

Coven-Harness: Claude Code / claude-opus-5-5
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

main f6976df cf5-evidence-race ac14557 +/-
63% 63% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@BunsDev
BunsDev merged commit ce75495 into main Oct 18, 2026
13 checks passed
@BunsDev
BunsDev deleted the cf5-evidence-race branch October 18, 2026 15:41
BunsDev added a commit that referenced this pull request Oct 18, 2026
Brings in #297 (e2e race fix) so #300 is up to date with main.

Coven-Harness: Claude Code / claude-opus-5-5
BunsDev added a commit that referenced this pull request Oct 18, 2026
Coven-Harness: Claude Code / claude-opus-5-5
BunsDev added a commit that referenced this pull request Oct 18, 2026
Coven-Harness: Claude Code / claude-opus-5-5
BunsDev added a commit that referenced this pull request Oct 18, 2026
Coven-Harness: Claude Code / claude-opus-5-5
BunsDev added a commit that referenced this pull request Oct 18, 2026
The merge is clean. #298 had already brought the same
conversation-evidence spec into this branch. The only change is #297's
three-line wait in typed-turns.spec.ts.

Refs #275

Coven-Harness: Claude Code / claude-opus-5-5
BunsDev added a commit that referenced this pull request Oct 18, 2026
…tore grant (steward cycle 2) (#300)

* Settle three claims cycle 1 left unverified

Docs and plans steward, cycle 2 (#290).

- modex-signin: 43821 is only the default callback registered with WorkOS. The
  listener has used a system-assigned port since #141 (workos-auth.ts,
  listen(0)), and the wildcard entry covers it. The doc now says so.
- auto-routing: unknown models fall back to tier 2 of 0-3 (catalog.ts tierOf),
  which "the middle tier" did not pin down.
- update-recovery: the test counts are from the 2026-10-12 local acceptance run
  the paragraph links, so it now gives that date.

Checked and left as they are: the analytics demo figures (471 calls, 147
sessions, 45 days, 11 sources, 212 unpriced) match sample.ts when run, and Codex
threads do keep their Pages tools until the app-server restarts, because the
config is sent only when a thread is first loaded.

Coven-Harness: Claude Code / claude-opus-5-5

* Point In flight at the tracker instead of listing CF PRs

Val decided on #290. The In flight entry for native conversation fidelity
listed open PRs by number, and the list went stale within hours. It already
named #291 (merged into #286) and missed #295, #297, #298 and #299. The entry
now says the tracker's child issues link their open PRs, which GitHub keeps
current.

Coven-Harness: Claude Code / claude-opus-5-5

* Record the GUI Connect grant as Val's manual testing

Val answered on #290. In the October 11 signed Store acceptance, a GUI Connect
run acquired a grant before the Host dialog was captured, and three reviews left
its attribution awaiting Val. Val confirmed the grant came from Val's own manual
testing.

- The signed-acceptance review gains a dated "Attribution resolved" section.
- The Store and Companion readiness reviews each gain a one-line dated note
  pointing to it. Their original text is unchanged.
- status.md's Store Open list drops the attribution item.

The Cancel check stays open: no Cancel success was recorded.

Coven-Harness: Claude Code / claude-opus-5-5

This branch was successfully deployed

1 active deployment
Preview — ac145572 Deployed Oct 18, 2026 by vercel[bot]
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