Skip to content

fix(studio): refuse an empty run scope, and resolve a run once before it starts - #526

Merged
pbertsch merged 1 commit into
mainfrom
fix/run-scope-followups
Nov 5, 2026
Merged

pbertsch merged 1 commit into
mainfrom
fix/run-scope-followups

Conversation

@pbertsch

@pbertsch pbertsch commented Nov 5, 2026

Copy link
Copy Markdown
Member

Summary

  • A line of 0 or an empty tag in run_file and in the MCP tool studio_run_file is refused, not read as the whole file. Left-out fields are still not sent.
  • runFileAsync claims the run slot before it returns, so a second start is refused by the call. It used to be dropped silently in the background. The scope is resolved once, and the background run uses that resolution. The error from that resolution is no longer dropped.
  • Tests: a failed test that has been renamed or removed is left out of a failed-only re-run; a composite test is selected by its name only when the run names it; an explicit line of 0 and an empty tag are refused; a start while a run holds the slot returns the refusal.
  • CHANGELOG updated.

Test plan

  • go vet ./... and go test ./... in studio, including the new scope and slot tests
  • Mutation check: disabling the stale-name guard fails TestFailedOnlyLeavesOutATestThatIsGone
  • go vet and go test ./internal/mcp/... ./internal/runner/... at the repo root
  • CI green on this PR

🤖 Generated with Claude Code

… it starts

A line of 0 or an empty tag is no longer read as the whole file: run_file and the MCP tool refuse it, and a line or tag that is left out is not sent. The run slot is now claimed before runFileAsync returns, so a second start is refused by the call instead of being dropped in the background, and the scope is resolved once.

Tests: a failed test that has been renamed or removed is left out of a failed-only re-run; a composite test is selected by its name only when the run names it; an explicit line of 0 and an empty tag are refused; a start while a run holds the slot returns the refusal.
@pbertsch
pbertsch requested a review from a team as a code owner November 5, 2026 04:06
@pbertsch
pbertsch merged commit 5ac02e1 into main Nov 5, 2026
9 of 21 checks passed
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