Repository navigation
fix(workspace): retain Main reply baseline before dispatch (#2730) - #2731
Conversation
|
merge-train 2026-09-12: not on this train — the fix holds for the issue's minimal case but not the general one. Verified by reading
So the two null resolutions diverge. When Main is the latest thread the baseline is right and #2730 is fixed; when the client touched another thread after Main, the baseline is that thread's last reply, Two fix shapes — which one is yours to pick:
Small things that can ride the same push: a The test is behavioural and bites (restoring the early return reds it) — nice. Rides the next train once fixed. |
|
merge-train 2026-09-13: not on this train. The previous ejection (see the merge-train comment above) has no push after it — the branch head is unchanged — so the same finding stands. Rides the next train once addressed. |
|
merge-train: ejected this run — rides the next train once fixed. Validation found the stated backend contract does not hold: |
vybe
left a comment
There was a problem hiding this comment.
Validated via /validate-pr (Lane B). Null session id now reaches the history read; the store already omits the param and the portal history route resolves an absent session to the pair's Main chat, so the baseline is read from the same thread the dispatch adopts. build + e2e green.
…he divergence, record the accepted delays (#2814) (#2816) `Issue Status on PR Merge` has not run since #2769 changed its trigger to `pull_request_target`: zero runs across six merges, three carrying a valid `Fixes #N`, every one of those issues left in `status-in-progress` until a human moved it. Not red — absent. GitHub executes the base branch's copy of a `pull_request_target` workflow but REGISTERS the trigger from the default branch, and `main` still says `pull_request`. Neither copy can start a run, and the change is inert until the next release cut. Decided (2026-09-15): wait for the release rather than hotfix `main`. This PR therefore ships the guard for the class, not the trigger: - tests/unit/test_2814_workflow_trigger_parity.py — for every workflow, each default-branch-registered event declared here must also be declared by `main`'s copy, or the delay is recorded in ACCEPTED_UNTIL_RELEASE with a reason. Reads `main` via `git show`, falls back to a `--depth=1` fetch (proven from a CI-shaped clone), skips loudly if unreachable. A stale allowlist entry fails too, so the record is pruned when the gap closes. First run found three MORE unrecorded divergences (`workflow_dispatch` on deploy-dev, alembic-head-watch, publish-images) beside the two `schedule` ones whose files already said "main only" in their own comments. - issue-status-on-merge.yml — the comment that said "runs the file as it exists on the BASE branch" now also says it is registered from `main`, since reading the first as the second is the inference that shipped this. - docs/memory/learnings.md — the class, stated once. Backfill (AC#2): #2730 (merged via #2731 at 15:15 UTC 2026-09-14) had never been promoted — now `status-in-dev`; #2794/#2795 had a stale `status-ready` beside their hand-added `status-in-dev` — stripped. Related to #2814 (AC#1 closes at the release cut, not here) Claude-Session: https://claude.ai/code/session_01VpvcfgWkmQPD7DrDLmATTf Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: sim <[email protected]>
Description
Workspace now reads the persisted reply baseline even when the client has not yet adopted a session id. This matches the backend contract that resolves an absent session id to the agent/client pair's Main chat.
Previously, the frontend substituted an empty baseline. Once the streaming dispatch returned Main's session id, the first history poll could mistake Main's existing assistant row for the new turn's answer. The change moves the fallible baseline read into a small testable helper and preserves the existing empty fallback only when the history read actually fails.
Related Issue
Fixes #2730
Journey Impact
Journey Impact: extends: J03
Type of Change
Testing
Verification after rebasing onto the latest
dev:npm run test:unit: 125 files, 2,733 tests passednpm run build: passednpm run check:tokens: passedgit diff --check origin/dev...HEAD: passedChecklist
Screenshots (if applicable)
Not applicable. The defect is reply attribution rather than visual layout, and the regression test covers the behavior without exposing a private conversation.