Skip to content

fix(tui): mention tags use forward slashes on every platform - #499

Merged
emal-avala merged 1 commit into
mainfrom
fix/mentions-forward-slash
Jul 25, 2026
Merged

fix(tui): mention tags use forward slashes on every platform#499
emal-avala merged 1 commit into
mainfrom
fix/mentions-forward-slash

Conversation

@emal-avala

Copy link
Copy Markdown
Member

Summary

  • The <file path="…"> label in @ mention expansion came from to_string_lossy on the workspace-relative path, which serializes with backslashes on Windows — the model-facing tag differed by host OS, and the three mention tests fail on Windows CI (currently blocking the release PR Release v0.28.0 #496 run). The label is now built by joining path components with / explicitly. No behavior change on unix.
  • The existing assertions already encode the forward-slash contract, so they validate the fix on Windows via this PR's CI and keep guarding it.

Test plan

  • cargo test -p agent-code --bin agent -- mentions (30 green locally)
  • rustfmt --check on the touched file
  • Windows CI on this PR (the failing platform)

The <file path="…"> label came from to_string_lossy on the
workspace-relative path, which serializes with backslashes on
Windows. The tag is model-facing text: the same mention must produce
identical output regardless of host OS. Join the path components
with forward slashes explicitly.

Fixes the three Windows failures in the mention suite (the existing
assertions already encode the forward-slash contract, so they now
pass on Windows and keep guarding it).
@emal-avala
emal-avala merged commit 46dd5df into main Jul 25, 2026
15 checks passed
@emal-avala
emal-avala deleted the fix/mentions-forward-slash branch July 25, 2026 22:05
@chatgpt-codex-connector chatgpt-codex-connector Bot mentioned this pull request Jul 25, 2026
8 tasks
emal-avala added a commit that referenced this pull request Jul 25, 2026
The Windows forward-slash fix for @ mention labels shipped after the
section was stamped and was missing from the release notes.
emal-avala added a commit that referenced this pull request Jul 27, 2026
The Windows forward-slash fix for @ mention labels shipped after the
section was stamped and was missing from the release notes.
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.

1 participant