GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — fix(scenarios): editor and no-model shims run on Windows by pauldupuyjr · Pull Request #42533 · pingdotgg/t3code Conversation
Contributor
ProblemOn Windows, Change
ScopeThis fixes a single simple bug in the scenario app on Windows. It has no issue because the wrong VerificationOn Windows 11, Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThe scenario app put its bin folder on PATH with a ":" separator and wrote the cursor and no-model shims as sh scripts. On Windows the folder never reached PATH and neither shim could run, so the editor shim never wrote editor-args.txt and Ctrl+click opened the real Cursor instead. The shims now use writeFakeCli, which writes a Node stub with a .cmd launcher on Windows, and PATH uses the host's delimiter. The bare filename scenario builds its expected path with the host separator. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
CLI shim setup and startup paths scripts/package.json, scripts/scenarios/start-app.ts |
The scripts workspace adds @t3tools/provider-testing. prepareHome uses writeFakeCli for the cursor and no-model shims. startApp uses ; on Windows and : on other platforms when joining the home bin directory to PATH. |
Terminal scenario paths and assertions scripts/scenarios/terminal-bare-filename-opens-its-location.e2e.ts |
The scenario uses effect/Path to construct host filesystem paths. It writes done to cat.done and checks that the file is nonempty. The expected editor argument uses the constructed host path. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related PRs
@t3tools/provider-testing, which this PR imports.Suggested labels: bugfix
Suggested reviewers: stienswout, juliusmarminge
1880c · assessed changes onlyPath filters excluded changed files. This rating applies only to the assessed changes.
Explanation
The title names the main change: the scenario editor and no-model shims are fixed to run on Windows. It matches the raw summary, which shows the shims now use writeFakeCli and PATH joins use the host separator. The title is a conventional commit with a clear scope, and it is 56 characters long.
Explanation
The description follows the template sections: Problem, Change, Scope, and Verification. It explains the Windows PATH separator bug and the sh-script shims, and it describes how writeFakeCli, the separator change, and the echo-based cat.done fix address them. It links no issue and gives a reason for that. Its Scope section explains that the PR fixes one bug. Verification lists the Windows 11 runs, the before and after results, and what was not tested (Linux and macOS). It also names the model and harness, as the template asks. It does not include screenshots, which is acceptable because the change does not affect the UI.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
scripts/scenarios/start-app.ts-61-61: 1
61-61:Trivial · Maintainability & Code Quality · Heavy lift
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Use Effect filesystem operations for shim creation.
writeFakeCliperforms synchronous Node filesystem calls outsideFileSystem.FileSystem. Failures therefore bypass the typed Effect error channel, and tests cannot substitute the filesystem service. Provide an Effect-based shim writer with typed errors.As per coding guidelines, “Use Effect platform services” and use
Schema.TaggedErrorfor failures. As per path instructions, scripts must use Effect and NodeServices rather than raw Node filesystem operations.Also applies to: 70-70
Sources: Coding guidelines, Path instructions
1b07c102-b6d1-49e5-b972-fbac1cf5ec1epnpm-lock.yaml is excluded by !**/pnpm-lock.yamlscripts/package.jsonscripts/scenarios/start-app.tsscripts/scenarios/terminal-bare-filename-opens-its-location.e2e.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
66a1e05 to
7f46c82
Compare
EvidenceWindows Server 2025, headless Chromium, 1280×800, light theme, fresh scenario homes and synthetic Replay data on both sides. Invoke no-model, print the compiler diagnostic using
Base could not find no-model and never created editor-args.txt. Head executed no-model with exit code 1 and recorded Not shown:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.