Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a client working directory contains
OpenCodeorOhMyOpenCode, the current scrubber rewrites the path tothe assistant. Other prose rules can truncate a path such as/tmp/You are powered by the model named DemobeforekeepClientCwdsees it. Meridian then extracts incorrect client metadata and may fall back to the server directory or adopt a different existing directory.This change separates generated environment blocks and the canonical cwd block retained by a previous scrub before applying the prose rules. It restores the cwd at the same position, removes the duplicate environment preamble, and preserves idempotence without placeholders or shared request state. It also recognizes CRLF environment input.
The new regressions cover Windows and Unix paths, spaces, brand and instruction-like directory names, both modes, repeated scrubbing, preserved tool/project guidance, and independent project requests. This is independent of the optional
Primary working directoryform addressed by #22. No package version or dependency changes are included.Validation:
npm ci --ignore-scripts,npm run build, andbun test: 52 tests pass. Independent code and specification reviews also pass.opencode-with-claude1.11.1 and the locally built scrub package: three concurrent projects, includingOpenCodeandOhMyOpenCode project, preserve their directories. Each executes a relative file read and continues with the correct marker. The production Meridian 1.79 cwd parser and fingerprint function return the three correct directories and distinct conversation fingerprints.The integration uses an HTTP fixture through the plugin's existing
MERIDIAN_PATHentrypoint. It exercises the actual CLI, plugin, transport, and client tools; it does not qualify Claude account authentication or SDK inference. The tested tarball is a local build of this source, not a published npm release.