You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: generated context commands mishandle project paths and working directories #790
Execute that returned command from the installed site: it fails. Passing the same project path as one quoted CLI argument succeeds.
Expected: every emitted project argument is shell-quoted for the supported shell/platform, including projectFlag overrides. The new shellWord helper is applied to hostFile/origin but ${flag} is still interpolated bare in both buildContext and buildTaskContext. Cover ordinary spaces and an apostrophe in project paths; use platform-appropriate quoting.
Relevant output
Both emitted commands exit 1 with {"event":"error","message":"Unexpected positional arguments"}. The project itself has only one declarative respond route and validates normally. The issue is the recommended command, not project loading.
A second reproduced path-handling problem affects commands returned by the local MCP server on 0.6.3. The generated client setup starts MCP from the installed site root, with --project app --host-file host.mjs. Calling get_context returns:
Executing this exact command from that site root exits 1: Host file must be outside the application project. Executing it after changing into site/app succeeds (8 routes in my fresh init --with admin,form-records --example site). The returned command gives no working-directory change or requirement.
The tool should return a command that targets the configured application from the documented client working directory, or include an explicit working directory with each command. Quoting alone will not fix this case. Verified through the real serveMcp → get_context response and execution of its commands.validate, with a revision-pinned composed host; no user project changed.
changed the title [-][Bug]: generated context commands do not quote project paths[/-][+][Bug]: generated context commands mishandle project paths and working directories[/+]on Sep 26, 2026
Activity
jimhoyd commentedon Sep 26, 2026
A second reproduced path-handling problem affects commands returned by the local MCP server on 0.6.3. The generated client setup starts MCP from the installed site root, with
--project app --host-file host.mjs. Callingget_contextreturns:npx --no --package @jimhoyd/urlcode urlcode validate --local --project . --host-file /tmp/review-site/host.mjs --origin https://site.exampleExecuting this exact command from that site root exits 1:
Host file must be outside the application project. Executing it after changing intosite/appsucceeds (8 routes in my freshinit --with admin,form-records --examplesite). The returned command gives no working-directory change or requirement.The tool should return a command that targets the configured application from the documented client working directory, or include an explicit working directory with each command. Quoting alone will not fix this case. Verified through the real
serveMcp→get_contextresponse and execution of itscommands.validate, with a revision-pinned composed host; no user project changed.[-][Bug]: generated context commands do not quote project paths[/-][+][Bug]: generated context commands mishandle project paths and working directories[/+]Merge main after #798; keep only the #790/#791 context fix
fix(core): context and plan-feature forward --origin; emitted command…