Skip to content

fix: report live runs after config workspace drift - #191

Merged
developerz-ai[bot] merged 1 commit into
mainfrom
dz/fix-status-stop-after-a-config-edit-so-the--0dae0ad1
Nov 11, 2026
Merged

developerz-ai[bot] merged 1 commit into
mainfrom
dz/fix-status-stop-after-a-config-edit-so-the--0dae0ad1

Conversation

@developerz-ai

@developerz-ai developerz-ai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Acceptance

  • A regression test reproduces the CLI failure mode where a recorded live workspace cannot be resolved, failing before the forward fix and passing after it.
  • After the project config workspace changes while a run is live, status reports the live session id, target, goal, server pid/liveness, verdict, finding counts, and both live/config workspace roots as drift; it does not print "no debug run recorded".
  • The same status behavior is covered when the effective config is moved between .dz/ui-debugger/ui-debugger-mcp.json and root .ui-debugger-mcp.json while the run remains live.
  • In the drifted state, stop targets the recorded live pid with SIGTERM and marks the live workspace breadcrumb stopped rather than refusing or writing a new workspace breadcrumb.
  • When the recorded live workspace cannot be resolved, status and stop throw a named ConfigError describing config drift so main exits nonzero instead of silently reporting no work.
  • A new debug run remains refused after its server's effective config changes, preserving the existing config freshness guard.
  • The targeted control test passes; the harness full lint and test gate passes.

Changes

  • src/cli/control.ts (edit) — Harden live-workspace resolution for status and stop: when a recorded live workspace pointer cannot yield its state breadcrumb, fail loudly with a ConfigError that names config drift rather than falling back to a misleading no-run result.
  • src/cli/control.test.ts (edit) — Extend drift regression coverage for status and stop to include moving the active config between .dz and root candidates, complete live-run output and SIGTERM behavior, plus the nonzero config-drift failure when the recorded live workspace cannot be resolved.

Verification

./bin/check passed (exit 0) in 1m 15s.

What the editors ran to see the change working, and what they saw:

  • bun test src/cli/control.test.ts (cli-control): Ran 20 tests across 1 file. [269.00ms]; exit 0.

Notes

Premises of the request the team disproved:

Part 5/6 of a goal


🤖 Opened by developerz.ai, an automated agent, not a human, on developerz-ai/ui-debugger-mcp.

Raised automatically by a developerz.ai maintainer lane.

🤖 developerz.ai, an automated agent, not a human — this PR is one slice of a stacked plan.
Dispatched automatically by a developerz.ai maintainer lane
Part 4/6

Dz-Task-Id: tsk_0dae0ad1c95257675f4446f97986992f
@developerz-ai developerz-ai Bot added the dz/fleet-pr Opened by the developerz.ai maintainer bot from a fleet run. label Nov 11, 2026
@developerz-ai

developerz-ai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Reviewed — nothing blocking

0 actionable comment(s) · grounded on your code

🤖 developerz.ai — automated review, running on your model and your box.

@developerz-ai developerz-ai Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review summary — 2 file(s), 0 finding(s).

Completed review status and stop now fail loudly when a recorded live workspace has no readable breadcrumb, with regression coverage for missing state and config relocation. No blocking defects found in the supplied diff.

🤖 developerz.ai review — automated, running on your model and your box. What is this?

@developerz-ai
developerz-ai Bot merged commit 274d4b7 into main Nov 11, 2026
3 checks passed
@developerz-ai
developerz-ai Bot deleted the dz/fix-status-stop-after-a-config-edit-so-the--0dae0ad1 branch November 11, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dz/fleet-pr Opened by the developerz.ai maintainer bot from a fleet run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants