Skip to content

fix(chat): preserve delegated child identity and activity timing - #4812

Merged
benjaminshafii merged 7 commits into
devfrom
fix/chat-activity-continuity-candidate
Sep 10, 2026
Merged

benjaminshafii merged 7 commits into
devfrom
fix/chat-activity-continuity-candidate

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

Summary

  • Preserve exact delegated child identity across v2 history reads and subscription teardown; prefer persisted task timing and distinguish unknown timing.
  • Exercise production delegation end to end in ACT-01: composer Send invokes native task (v1) / foreground subagent (v2), which creates the child and emits the actual parent tool row.
  • Verify the row's message, call and child IDs against native history and session inventory, its shimmer and placement before a real follow-up, and navigation/reload of the live child.

No synthetic task seed, injected child metadata, or forced streaming is used. The deterministic provider controls model output only. On v2, live history can omit child metadata; the independent witness reads the unique native child whose parentID matches the submitted parent. The app still consumes production events through its adapter.

Verification

Final clean commit: bd3073e2a40e8b403215e997117f242564d21540.
Merged base: e925c7c991ee9b4748b1400b82be3178e9eb3a2a.

Check Result Receipt relative to candidate worktree
ACT-01 local headless web, v1 exit 0; 1 passed, 0 failed, 0 skipped evals/results/.testkit/cli-run-1789057026036.json
ACT-01 local headless web, v2 exit 0; 1 passed, 0 failed, 0 skipped evals/results/.testkit/cli-run-1789057050977.json
Requested five-file app Bun suite on preceding c434718 (app unchanged) exit 0; 129 passed, 0 failed; 41,384 expectations Local command output
App typecheck on preceding c434718 (app unchanged) exit 0 Local command output
git diff origin/dev --check exit 0 Local command output

Journey commands use the supplied Node24/Bun/sidecars PATH and:
env -i HOME="$HOME" TMPDIR="${TMPDIR:-/tmp}" PATH="$PATH" OPENWORK_EVAL_CHROME_HEADLESS=1 pnpm evals:e2e task-activity-shimmer --local --engine v1 --case ACT-01
(repeat with v2).

Explicit contract: surfaces=[appWeb], services=[mock]. Both selections are local/web/ACT-01, with selectedCasePassed=true and no unexpected executions.

App checks:
pnpm --filter @openwork/app exec bun test tests/message-list-loading.test.tsx tests/opencode-v2-adapter.test.ts tests/session-sync-tool-parts.test.ts tests/subagent-run-line.test.tsx tests/tool-call-duration.test.ts
and pnpm --filter @openwork/app typecheck.

Evidence mapping and limits

ACT-01 proves actual native delegation-to-row wiring, one shimmering row in its native message before the follow-up, exact call/child IDs, no duplicated summary or exposed child prompt in the parent, and navigation/reload retaining the child identity, prompt and Working state while the provider remains held.

Timing hydration, exact cache keys, teardown preservation and uncertainty rendering have diagnostic unit coverage; these are not relabeled as journey proof. Parent-row persistence across parent reload, long-silence/terminal-animation coverage, full Resume behavior and partial-answer continuity remain outside ACT-01's claims.

Both sends use trusted UI input: composer Send starts delegation, then user.type and Cmd/Ctrl+Enter invoke production busy-state steering for the follow-up. The test waits for the follow-up user message and verifies its placement after the original native tool message. The world has no followup API-write helper. No changes to chat.ts, session-surface fixture hooks, or Stop behavior. Evidence is published inline because the private review-app URL is not configured; no hosted report is claimed.

Final local review

Bare pnpm warden:check exited 0 on the clean final head. Expected and completed all four skills: diff-security-review, confidentiality-review, spec-provenance-review, desktop-den-sync-review. No findings. Before/after HEAD bd3073e2a40e8b403215e997117f242564d21540 and origin/dev e925c7c991ee9b4748b1400b82be3178e9eb3a2a were unchanged. Run 8d4e0cb3-2026-09-10T16-23-51-622Z. Prior synthetic delegation and direct-API follow-up findings were fixed, both journeys rerun, and the complete review rerun. GitHub checks/reviews remain independent.

@vercel

vercel Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 10, 2026 4:47pm UTC
openwork-den Ready Ready Preview Sep 10, 2026 4:47pm UTC
openwork-diagnostics Ready Ready Preview Sep 10, 2026 4:47pm UTC
openwork-landing Ready Ready Preview, v0 Sep 10, 2026 4:47pm UTC

@benjaminshafii

benjaminshafii commented Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Passed · 10/10 tests · 15/15 assertions · 5 images

Commit bd3073e2a40e8b403215e997117f242564d21540 · selected evidence

Open review report

@github-actions

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (176375 ms), confidentiality-review (208164 ms), spec-provenance-review (146637 ms), desktop-den-sync-review (207539 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 1
  • Distinct heads in retained window: 1
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 1/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@diff-warden diff-warden 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.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (bd3073e2a40e8b403215e997117f242564d21540). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — bd3073e2 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-app — bd3073e2 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-den — bd3073e2 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-diagnostics — bd3073e2 Deployed Sep 10, 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