Skip to content

fix(app): interrupt delegated work before immediate follow-ups - #4837

Merged
reachjalil merged 1 commit into
devfrom
interrupt-thread-subtasks
Sep 10, 2026
Merged

reachjalil merged 1 commit into
devfrom
interrupt-thread-subtasks

Conversation

@reachjalil

Copy link
Copy Markdown
Member

Summary

Immediate follow-ups currently enter the running turn while foreground delegated work continues, leaving the new message waiting on that work. Interrupt the current foreground tree before admitting the successor.

  • Reuse the existing scoped interruption coordinator for Steer and Send now.
  • Preserve ordinary steering without active delegation, explicit queueing, automatic queue draining, background tasks, and unrelated conversations.
  • Keep the successor fenced until cancellation completes; another Stop cancels the waiting successor.

Verification

Verdict: Incomplete — focused regression checks passed; real-app runtime proof is not yet available.

Passed:

  • pnpm --filter @openwork/app exec bun test --isolate ./tests/opencode-session-native.test.ts — 29 passed, 0 failed, exit 0.
  • git diff --check.
  • Signed commit; rebased onto freshly fetched dev.

Deferred:

  • Exact-head real-app journey and published runtime evidence. The existing parent-child question journey hides the composer while the child question is pending; it needs a running-child fixture that permits the immediate follow-up gesture.
  • Broader suites and manual UI verification.

Keyboard policy is unchanged: Enter while busy queues; the immediate-send action interrupts foreground delegation.

@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 7:26pm UTC
3 Skipped Deployments
Project Deployment Actions Updated
openwork-den Skipped Skipped Sep 10, 2026 7:26pm UTC
openwork-diagnostics Skipped Skipped Sep 10, 2026 7:26pm UTC
openwork-landing Skipped Skipped v0 Sep 10, 2026 7:26pm UTC

@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 (35050 ms), confidentiality-review (34084 ms), desktop-den-sync-review (40317 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 (6d35baaea32a5f3de56da156bcdfeedac5408e78). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@github-actions

Copy link
Copy Markdown
Contributor

Passed · 12/12 tests · 18/18 assertions · 8 images

Commit 6d35baaea32a5f3de56da156bcdfeedac5408e78 · selected evidence

Open review report

This branch was successfully deployed

1 active and 3 inactive deployments
Preview – openwork-app — 6d35baae Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-landing — 6d35baae Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-diagnostics — 6d35baae Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-den — 6d35baae 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