Skip to content

tweak: handle pasted attachment references - #1257

Merged
adamdotdevin merged 1 commit into
anomalyco:devfrom
rekram1-node:tweak/resolve-pasted-attachment-references
Jul 23, 2025
Merged

adamdotdevin merged 1 commit into
anomalyco:devfrom
rekram1-node:tweak/resolve-pasted-attachment-references

Conversation

@rekram1-node

Copy link
Copy Markdown
Member

fixes: #1252

@adamdotdevin
adamdotdevin merged commit 289a4d9 into anomalyco:dev Jul 23, 2025
@rekram1-node
rekram1-node deleted the tweak/resolve-pasted-attachment-references branch July 23, 2025 20:44
pepperpepperpepper pushed a commit to pepperpepperpepper/opencode that referenced this pull request Jul 29, 2025
bussard76 pushed a commit to bussard76/openwork that referenced this pull request May 12, 2026
…mismatch (anomalyco#1257)

The server compares session.directory with strict equality, but call sites
could silently pick the wrong path formatter (normalizeDirectoryQueryPath
vs toSessionTransportDirectory) — producing forward-slash paths on Windows
where the server stores native backslashes.

Changes:
- Add TransportDirectory branded type so the compiler rejects raw strings
  where a transport-formatted directory is expected.
- Fix connections/store.ts: switch path discovery from normalizeDirectoryQueryPath
  to toSessionTransportDirectory — this value feeds mcp.status/disconnect calls
  that use the same exact-match semantics (latent Windows bug).
- Fix workspace.ts: remote directory discovery now goes through
  toSessionTransportDirectory (caught by the branded type at compile time).
- Mark normalizeDirectoryQueryPath with JSDoc deprecation for server-query use.
- Add round-trip invariant and idempotency tests that assert create-path
  equals list-path for both Unix and Windows directory formats.
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
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.

Feature request: @files (paste file from clipboard)

2 participants