GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): don't label Windows paths outside the workspace as relative by ValeraZSD · Pull Request #13414 · pingdotgg/t3code

Conversation

@ValeraZSD

@ValeraZSD ValeraZSD commented Sep 24, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

On Windows, a file outside the project, like an agent editing C:\Users\me\.claude\settings.json, shows up in the timeline as repo/C:/Users/me/.claude/settings.json, and "Copy relative path" on a chat file link copies that same string. formatWorkspaceRelativePath only treated paths starting with / as absolute, so a drive path fell into the relative branch and got the workspace label put in front of it.

It now skips the relative branch for Windows absolute paths too, which is what already happens to /Users/... on macOS. Paths inside the workspace are unchanged.

This is a one-line fix for an obvious display bug, so it goes under the small-fix exception in CONTRIBUTING rather than a prior issue.

Verification

Web dev server (vp run dev) from a worktree at main 3982f20ce4, Windows 10, isolated .t3 state, headless Edge at 1000×640 (2x). One seeded thread whose agent changed C:\Users\demo\.claude\settings.json (outside the project) and src\config.ts (inside it). The project root ends in apps\server, so the workspace label is server. No provider ran.

  • Timeline, "Changed 2 files" expanded. Main: server/C:/Users/demo/.claude/settings.json. Fix: C:/Users/demo/.claude/settings.json. The file inside the project reads server/src/config.ts in both.
  • Right-click the settings.json chat link, "Copy relative path", read the clipboard back. Main: server/C:/Users/demo/.claude/settings.json. Fix: C:/Users/demo/.claude/settings.json.
  • vp test run src/filePathDisplay.test.ts in apps/web: with main's filePathDisplay.ts the new case fails (1 failed, 5 passed); with the fix, 6 passed.
  • On current main 67c0fc0cda, filePathDisplay.ts is unchanged and the branch still merges cleanly.

Not checked: the Electron shell, and mobile, which formats paths with its own helper in apps/mobile/src/features/files/filePath.ts and is not touched here.

Before (main 3982f20ce4):

Before: timeline shows server/C:/Users/demo/.claude/settings.json

Before, light theme

After (with this fix):

After: timeline shows C:/Users/demo/.claude/settings.json

After, light theme

Model and harness

Claude Opus 5.5 (high effort) in Claude Code, run from T3 Code.

Summary by CodeRabbit

  • Bug Fixes
    • Windows absolute paths outside the workspace are now displayed as normalized absolute paths instead of being incorrectly shown as workspace-relative.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ValeraZSD
fix(web): Windows paths outside the workspace
9b37e42
@ValeraZSD ValeraZSD changed the title fix(web): Windows paths outside the workspace fix(web): don't label Windows paths outside the workspace as relative Sep 24, 2026
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Sep 24, 2026
@macroscopeapp

macroscopeapp Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 9b37e42

Macroscope's review found this PR approvable — This is a narrowly scoped web formatting fix that prevents external Windows absolute paths from being mislabeled as workspace-relative. It includes focused regression coverage and does not alter defaults, APIs, infrastructure, or static-analysis settings.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot approved these changes Sep 24, 2026
View reviewed changes
@coderabbitai

coderabbitai Bot commented Sep 24, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 3fdabeb2-17ca-4dce-a3dd-946133927ea8

📥 Commits

Reviewing files that changed from the base of the PR and between b2b43be and 9b37e42.

📒 Files selected for processing (2)
  • apps/web/src/filePathDisplay.test.ts
  • apps/web/src/filePathDisplay.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review.


📝 Walkthrough

Walkthrough

The path formatter now excludes Windows absolute paths from workspace-relative formatting. A test checks normalized backslash paths and paths on a different drive.

Changes

Windows Path Display

Layer / File(s) Summary
Exclude Windows absolute paths from workspace-relative formatting
apps/web/src/filePathDisplay.ts, apps/web/src/filePathDisplay.test.ts
The formatter returns normalized Windows absolute paths outside the workspace without applying workspace-label formatting. The test checks a backslash path and a path on a different drive.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix · Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to 9b37e

Outside-workspace Windows paths retain normalized absolute display, while paths inside the workspace remain workspace-relative. The supplied tests cover these behaviors; no concrete merge risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the main change: preventing Windows paths outside the workspace from being labeled as relative.
Description check ✅ Passed The description explains the Windows path bug, the affected behavior, and the implemented fix. It does not use the template headings or include the checklist, but it contains the required core informa…
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge ChatGPT Codex Connector

juliusmarminge commented Oct 1, 2026

Copy link
Copy Markdown
Member

Note

This comment is posted by Julius' dot

This changes path labels in the timeline and chat, but the PR has no before/after screenshots. The verification rule requires them for UI changes; the formatting regression alone doesn't show the rendered result. Closing for that missing evidence. Please add captures of an external Windows path and request reconsideration.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Oct 1, 2026
@ValeraZSD

ValeraZSD commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Added the captures the closure asked for: an agent edit to C:\Users\demo\.claude\settings.json outside the workspace, before and after, in both themes, plus what "Copy relative path" copies in each case. The run, the focused test (red on main, green with the fix) and what was not checked are in the description under Verification. The bug is still on main 67c0fc0cda and the branch merges cleanly. Requesting reconsideration.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@romeuesteve romeuesteve mentioned this pull request Oct 30, 2026
[Bug]: Native Windows image-read activity prefixes external absolute paths with the project name #27308
Closed
2 tasks done
@ValeraZSD ValeraZSD mentioned this pull request Nov 1, 2026
fix(web): don't label Windows paths outside the workspace as relative #28469
Merged
@ValeraZSD

ValeraZSD commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Replaced by #28469, the same fix rebuilt on current main with fresh captures.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@ValeraZSD @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.