Repository navigation
desk-web e2e-hub: the session-plane suite follows DC9's session view and #57's grace - #95
Conversation
…and #57's grace Five cases of e2e-hub/session-plane.spec.ts failed on master. Bisected: all pass at 6a677a8; the four G2 cases first fail at f248aae (#30, desk DC9), M1 first fails at 074c0d2 (#58, MAWS #57). Not #91: the same five fail at 44e4a3c. - G2 decide/answer, forged event, retire, replayed log: since DC9 a direct channel is the session view wherever the machine serves the transcript (§4 as amended 2026-10-17, §9.1). Pending requests are cards at its tail, gone once settled, so the settled cards and their redraw after a reload are read in the group chat. A retired session ends with its marker row, the lifecycle line being the group chat's. The forged case reads the log in the group chat, since its test client answers no subscription. In the replayed-log case, fakerec's channel is its transcript (message, turn dividers, the delivered send at the tail), and fakepeer's, with no transcript on the machine, is the log-built fallback with its agent run. The fold-boundary checks went with DC9 M4's retirement of the log-built folds; the toolUseId check is now the call's question row in the session view. - M1: a closed stream's lease holds the machine online for one more heartbeat (MAWS #57), so offline is bounded by two heartbeats plus 500 ms: 3,815-3,861 ms measured against the old 2,500. The Decision Log entry is amended and the tracker row closed. Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 405e9025ba
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const view = center(page).getByTestId('session-view'); | ||
| await expect(view).toHaveAttribute('data-session', rec.session); | ||
| await expect(view).toContainText('You chose blue'); | ||
| await expect(view.locator('[data-kind="divider"]').first()).toBeVisible(); |
There was a problem hiding this comment.
Assert the report fold instead of a divider
Assert a visible owner-record:/“Working record” row (and ideally that Report is selected) here. If the real-hub direct channel accidentally opens in Transcript mode or stops folding marked turns, this assertion still passes because Transcript mode also renders divider rows—as demonstrated by apps/desk-web/e2e/acceptance.spec.ts:168-172. Consequently, the updated G2 case no longer verifies the per-turn folding promised by its title and preceding comment.
Useful? React with 👍 / 👎.
Five cases of
apps/desk-web/e2e-hub/session-plane.spec.tsfailed on master. The suite runs in no default gate set, so nothing caught it. This brings the spec up to the design it tests. No product code changes.Bisect
Each point is one full run of the spec: a vite build, then
playwright -c playwright.hub.config.ts.#91's refused-frames answer is not involved: the fake machine never reads
refused.Causes and changes
e2e/conversation.spec.ts,e2e/session-view-tail.spec.ts) were updated then; this one was not. The product behaves as designed in every case.decided). Thedata-to/data-fromfold checks went with the folds DC9 M4 retired. ThetoolUseIdcheck is now that the question is drawn at the call's row (question:<call>), never under the dialog's id.2 × heartbeat + 500ms. The composite's Decision Log entry is amended and the tracker row that had logged this is removed. That amendment also says the grace makes a dropped machine read offline after 15 s on the deployed hub, and leaves acceptance 1's reading of that to the owner.Verification
tsc -p apps/desk-web/tsconfig.node.jsonand eslint on the spec are clean.scripts/ci-gate.sh --gates static,unit,e2e:desk-web, run 39548434445 (static, unit, e2e:desk-web).doperpowers:reviewer-medium: correct, no material findings.Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)