fix(stagecraft): studio serve starts without a data query, and claim prints the title as JSON (swamp-club #2951) #445
Loading…
Reference in a new issue
No description provided.
Delete branch "cue/2951-stagecraft-studio-serve"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes swamp-club #2951: two low findings from the #2944 verification reviews.
Studio serve without a data query
serveStudiorefused to start when the method context had noqueryData, although the handler already treats the query as optional. Serve now starts without one: Design and Simulate work, the work-item routes (Board, the work-item page, and #2969's Ticket tab) answer 422 "this studio cannot read work items", and no work-item poll runs. Real swamp always bindsqueryData, so this aligns the contract rather than fixing an outage.The printed start command's title
The issue guessed a numeric title would be coerced. It is not: swamp keeps
key=valueinputs as strings. The real failure was a title beginning with@, which swamp reads as a file's path, so the commandclaimandnew_keyprint failed withInput file not found for key "title".startCommandnow prints--input 'title:json="<title>"', which swamp parses as JSON, bypassing@handling, so any title arrives as a string.Tests
studio_serve_test.ts: serve with no query starts, serves/, answers 422 on both work-item routes, and stops on abort; it fails at once (not hangs) on the old guard.claim_test.ts: thetitle:jsonform, and@-leading, numeric and quoted titles round-trip exactly.@alice cannot log inis claimed and started with the printed command, and the run records the exact title. It fails on the oldtitle=form with swamp's "Input file not found".driving.mdon passing an@-leading title as JSON.🤖 Generated with Claude Code