[PR #5179] [GUI] add true same-turn coding-agent steering with a reproducible Harness patch #5333

Open
opened 2026-11-07 16:34:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/5179
Author: @TaskPuppyNatani
Created: 11/4/2026
Status: 🔄 Open

Base: main ← Head: fix/desktop-steering


📝 Commits (5)

  • f646f74 [GUI] add same-turn agent steering with a source-built Harness patch
  • b33a7de [GUI] integrate upstream main into same-turn steering
  • c593308 [GUI] gate same-turn steering on parent turn availability
  • 82bb652 [GUI] bind steering admission to the expected parent turn
  • 3a5df08 Merge upstream/main into steering availability

📊 Changes

23 files changed (+15780 additions, -96 deletions)

View changed files

📝 .gitattributes (+3 -0)
➕ apps/desktop/scripts/harness-steering.mjs (+66 -0)
📝 apps/desktop/scripts/stage-harness.mjs (+4 -1)
➕ apps/host/scripts/steering-e2e.mjs (+42 -0)
📝 apps/host/server/agent/agent-bridge.mjs (+83 -4)
📝 apps/host/server/agent/gateway-client.mjs (+1 -0)
➕ apps/host/server/agent/steering.mjs (+77 -0)
📝 apps/host/server/index.mjs (+7 -0)
📝 apps/host/src/components/PlanCard.tsx (+22 -4)
📝 apps/host/src/lib/chat-photos.ts (+2 -0)
📝 apps/host/src/lib/client.ts (+3 -3)
📝 apps/host/src/lib/store.ts (+210 -41)
📝 apps/host/src/lib/while-busy.ts (+6 -5)
📝 apps/host/src/screens/Chat.tsx (+18 -29)
📝 apps/host/src/screens/Settings.tsx (+1 -1)
➕ apps/host/tests/agent-steering.test.mjs (+286 -0)
➕ apps/host/tests/chat-steering-ui.test.mjs (+168 -0)
➕ apps/host/tests/chat-steering.test.mjs (+377 -0)
📝 apps/host/tests/no-model-chat.test.mjs (+1 -1)
📝 apps/host/tests/ui-do.test.mjs (+8 -7)

...and 3 more files

📄 Description

Summary

Adds true same-turn coding-agent steering to Strata's desktop interface.

Users can send corrections while an agent is working without cancelling the entire run or creating a replacement turn.

The implementation includes:

  • Steer current run alongside Wait, Send after, and Interrupt.
  • Safe interruption of the current model attempt while preserving completed output and tool results.
  • Ordered, duplicate-safe corrections with durable delivery receipts.
  • Numeric parent-turn admission checks, preventing delayed corrections from entering a different turn.
  • Parent/helper lifecycle tracking, preventing steering from being offered when only a helper remains active.
  • Preserved approval, queue, compaction, and Full Stop behavior.

Integration

Updated against Strata 0.2.11 with Control/engine integration 0.1.57.

  • Integration commit: 3a5df0840c343540d89d916fd9152d94df06165e
  • Upstream baseline: 9f7d977d220e9fdf2ec53cf2620cdadac1cfb24e

Earlier upstream merge conflicts are resolved.

DeepSeek Harness dependency

True steering requires a separately built, patched DeepSeek Harness.

  • Harness source: 571902028a75c64c1d767f4ae5fd099485f0ddf0
  • Patch: strata-harness-soft-cut-v2
  • Patch SHA-256: fdac9e2dcf0cf4be9bee4c7018ff4c664c2e718552f67e2830abde9ed09dff49

Reproducible patching, staging, and provenance verification are documented under packaging/harness/.

An unpatched Harness cannot provide this feature. Release packaging must include the patched component.

Verification

Completed verification includes:

  • 126 Harness source tests passed.
  • 62 integration Host steering/chat tests passed, using scripted model responses.
  • 19 model-free engine selection/version checks passed.
  • Host TypeScript checking and production build passed.
  • Clean-source patch application and provenance verification passed.
  • Linux AppImage packaging verified 31,147 files with zero mismatches.
  • 12 packaged-startup checks, 12 scripted Harness tests, and 4 packaged Harness import checks passed.
  • Final publication checkpoint: 32 focused Host/Gateway/chat tests and 1 Chromium UI check passed.

These figures represent separate verification runs, not cumulative unique test counts.

Recorded live steering evidence

A retained local Harness session from a scientific-calculator coding task confirms successful same-turn delivery.

The parent agent's numeric turn 1 began at event sequence 11 and ended at sequence 571.

Three corrections were committed at event sequences 44, 488, and 555. Each matched its steering receipt and had the expected numeric parent-turn provenance.

A separate verification helper session was linked to the parent. A brief subsequent parent turn began only after all three corrections had been delivered.

No steering correction was redirected into that subsequent turn.

Evidence limitations

The recovered Harness records were found under the regular Strata profile, not the intended isolated test profile. Therefore, the exact AppImage that produced the recorded session cannot be independently established.

The session records also do not independently verify the precise local model family.

The recorded events confirm same-turn steering in that local session, but should not be treated as proof of exact packaged-build provenance.

Remaining validation

  • Current-head GitHub CI results were not reported at the publication checkpoint.
  • Full cross-platform and broad real-model compatibility testing remains outstanding.
  • The test-profile storage discrepancy remains unexplained.

The PR remains a draft pending remaining validation and upstream review.

Refs #4004 and #4783.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/5179 **Author:** [@TaskPuppyNatani](https://github.com/TaskPuppyNatani) **Created:** 11/4/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/desktop-steering` --- ### 📝 Commits (5) - [`f646f74`](https://github.com/Niko1221/Strata/commit/f646f74ab62ef2d7574451dbd4bf6f2149b578c7) [GUI] add same-turn agent steering with a source-built Harness patch - [`b33a7de`](https://github.com/Niko1221/Strata/commit/b33a7de92e8c42ff20589c1418ced7e375402682) [GUI] integrate upstream main into same-turn steering - [`c593308`](https://github.com/Niko1221/Strata/commit/c5933088421985eb6db85ccfa5d8967b6a7566cc) [GUI] gate same-turn steering on parent turn availability - [`82bb652`](https://github.com/Niko1221/Strata/commit/82bb652fcdf80cefaa9bc07f677e4ab0140116cf) [GUI] bind steering admission to the expected parent turn - [`3a5df08`](https://github.com/Niko1221/Strata/commit/3a5df0840c343540d89d916fd9152d94df06165e) Merge upstream/main into steering availability ### 📊 Changes **23 files changed** (+15780 additions, -96 deletions) <details> <summary>View changed files</summary> 📝 `.gitattributes` (+3 -0) ➕ `apps/desktop/scripts/harness-steering.mjs` (+66 -0) 📝 `apps/desktop/scripts/stage-harness.mjs` (+4 -1) ➕ `apps/host/scripts/steering-e2e.mjs` (+42 -0) 📝 `apps/host/server/agent/agent-bridge.mjs` (+83 -4) 📝 `apps/host/server/agent/gateway-client.mjs` (+1 -0) ➕ `apps/host/server/agent/steering.mjs` (+77 -0) 📝 `apps/host/server/index.mjs` (+7 -0) 📝 `apps/host/src/components/PlanCard.tsx` (+22 -4) 📝 `apps/host/src/lib/chat-photos.ts` (+2 -0) 📝 `apps/host/src/lib/client.ts` (+3 -3) 📝 `apps/host/src/lib/store.ts` (+210 -41) 📝 `apps/host/src/lib/while-busy.ts` (+6 -5) 📝 `apps/host/src/screens/Chat.tsx` (+18 -29) 📝 `apps/host/src/screens/Settings.tsx` (+1 -1) ➕ `apps/host/tests/agent-steering.test.mjs` (+286 -0) ➕ `apps/host/tests/chat-steering-ui.test.mjs` (+168 -0) ➕ `apps/host/tests/chat-steering.test.mjs` (+377 -0) 📝 `apps/host/tests/no-model-chat.test.mjs` (+1 -1) 📝 `apps/host/tests/ui-do.test.mjs` (+8 -7) _...and 3 more files_ </details> ### 📄 Description ## Summary Adds **true same-turn coding-agent steering** to Strata's desktop interface. Users can send corrections while an agent is working without cancelling the entire run or creating a replacement turn. The implementation includes: - **Steer current run** alongside Wait, Send after, and Interrupt. - Safe interruption of the current model attempt while preserving completed output and tool results. - Ordered, duplicate-safe corrections with durable delivery receipts. - Numeric parent-turn admission checks, preventing delayed corrections from entering a different turn. - Parent/helper lifecycle tracking, preventing steering from being offered when only a helper remains active. - Preserved approval, queue, compaction, and Full Stop behavior. ## Integration Updated against **Strata 0.2.11** with Control/engine integration **0.1.57**. - Integration commit: `3a5df0840c343540d89d916fd9152d94df06165e` - Upstream baseline: `9f7d977d220e9fdf2ec53cf2620cdadac1cfb24e` Earlier upstream merge conflicts are resolved. ## DeepSeek Harness dependency True steering requires a separately built, patched DeepSeek Harness. - Harness source: `571902028a75c64c1d767f4ae5fd099485f0ddf0` - Patch: `strata-harness-soft-cut-v2` - Patch SHA-256: `fdac9e2dcf0cf4be9bee4c7018ff4c664c2e718552f67e2830abde9ed09dff49` Reproducible patching, staging, and provenance verification are documented under `packaging/harness/`. An unpatched Harness cannot provide this feature. Release packaging must include the patched component. ## Verification Completed verification includes: - **126 Harness source tests passed.** - **62 integration Host steering/chat tests passed**, using scripted model responses. - **19 model-free engine selection/version checks passed.** - Host TypeScript checking and production build passed. - Clean-source patch application and provenance verification passed. - Linux AppImage packaging verified **31,147 files with zero mismatches**. - **12 packaged-startup checks**, **12 scripted Harness tests**, and **4 packaged Harness import checks** passed. - Final publication checkpoint: **32 focused Host/Gateway/chat tests** and **1 Chromium UI check** passed. These figures represent separate verification runs, not cumulative unique test counts. ### Recorded live steering evidence A retained local Harness session from a scientific-calculator coding task confirms successful same-turn delivery. The parent agent's numeric turn **1** began at event sequence 11 and ended at sequence 571. Three corrections were committed at event sequences **44, 488, and 555**. Each matched its steering receipt and had the expected numeric parent-turn provenance. A separate verification helper session was linked to the parent. A brief subsequent parent turn began only after all three corrections had been delivered. **No steering correction was redirected into that subsequent turn.** ### Evidence limitations The recovered Harness records were found under the regular Strata profile, not the intended isolated test profile. Therefore, the exact AppImage that produced the recorded session cannot be independently established. The session records also do not independently verify the precise local model family. The recorded events confirm same-turn steering in that local session, but should not be treated as proof of exact packaged-build provenance. ## Remaining validation - Current-head GitHub CI results were not reported at the publication checkpoint. - Full cross-platform and broad real-model compatibility testing remains outstanding. - The test-profile storage discrepancy remains unexplained. The PR remains a **draft** pending remaining validation and upstream review. Refs #4004 and #4783. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#5333
No description provided.