You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(privacy): show file lists relative to the workspace, never by home path or user name - #407
Patterns' Hot files (and the Busiest Copilot Files list under Explore more) and Context Health's Top Referenced Files showed full local paths, including the home folder and the user name. They now show:
a file inside its workspace folder relative to it: src/app.ts;
any other file from ~ for the home folder: ~/notes/todo.md;
other accounts' home folder names and the account name (remote/WSL homes, a folder named after the account) as …: /home/…/proj/a.ts.
Same-named files are told apart by their relative path (src/a/index.ts, src/b/index.ts). When different files of two workspaces share a relative path in Context Health's per-harness list, the workspace's name goes in front (api/src/app.ts, web/src/app.ts); labels that are still equal get a number, as #405 does for workspaces.
How
One browser-safe helper in src/core/display-path.ts (fileDisplayPath, rankFiles), reusing the existing shortenHomePath / hideAccountName from feat(loading): redesign the loading screen (card, details drawer, ready state) #393. Both lists go through rankFiles, which also counts a file once per request, and once whichever workspace logged it, whether it was logged relative, absolute, as a \\?\ long path, a file URI (with or without a host) or VS Code's /c:/… URI path. The Hot files used to count folder/file (the last two segments), which merged different files and, for Windows paths, kept the whole path.
Editor chats keep their workspace folder only in the parse result's source index, not on the session. The Analyzer now takes an optional session → folder map (workspaceRootsOf(parseResult.sessionSourceIndex)) from the panel, the canvas host and the summary export command, and passes it to the warm-up worker, which precomputes Context Health.
No cache change: labels are derived at analysis time, the parse output is unchanged.
Scope (decided by the user)
In scope: these two file lists, their tooltips/data-tip/aria-label, and the same lists in the @aicoach chat tools and the summary export. The chat tools and the export don't include either list today (checked on real data, see below), so nothing changes there.
Out of scope, separate follow-ups: quoted prompt text, and paths sent to the page but not shown.
#405 (workspace names) and this PR both build on display-path.ts from #393 and need two of #405's helpers: Windows long-path (\\?\) handling and hiding other accounts' home folder names. This PR copies those exact lines (stripLongPathPrefix, the decodeFileUri change, accountName, otherHomeAccount, hideOtherHomeAccount) rather than stacking on #405, so either can merge first:
the shared lines merge cleanly;
two small textual conflicts remain: adjacent imports in src/canvas/host.ts, and both PRs appending new functions at the end of display-path.ts. Resolution is "keep both" in each.
Workspace names on the Patterns cards and in the chat tools are #405's scope and are not changed here.
Real data (read-only)
Canvas host over this machine's real logs (fake HOME with junctions to the real dot-folders, real USERPROFILE), calling getProjectOverview and getConfigHealth for every filter the page offers (unfiltered, each of 420 workspaces, each of 5 harnesses: 426 calls each). Count of distinct labels that contain the home path or the user name:
List
main
this PR
Hot files
432 of 644
0 of 486
Top Referenced Files
1277 of 1588
0 of 1010
@aicoach chat tools: these lists
not included
not included
Summary export (JSON, Markdown): these lists
not included
not included
After the change, 70% of the hot files (341 of 486) and 69% of the referenced files (695 of 1010) on this machine are shown relative to their workspace; the ~/ ones are files outside any workspace (session plans, skills, other checkouts). Fewer distinct labels than on main because the same file logged in different forms now counts once.
At head 8f90c6b (after 8 Copilot review rounds; see the round comments).
Command
Result
npm run check
passed: typecheck, lint 488 warnings, 0 errors (main: 489), spellcheck 0 issues, knip, lockfile-lint, 199 files / 4296 tests. One run timed out in scripts/build-changelog.test.mjs (git clone under load); it passes alone (6/6) and isn't touched here
npm run build
passed
npm run package
passed (1.79 MB)
npm run check-size
passed (dist/extension.js 1.87 MB of 2 MB)
E2E_PORT=<free port> npm run test:e2e
252 passed, 8 failed, 7 skipped on a loaded machine; the failed specs (context-mgmt, output-races, token-types) pass alone (56/56). On the same machine main's full suite also had 2 random timeouts. CI's e2e passed on 1705986
npm run test:vscode -- --vsix ai-engineer-coach-0.1.0.vsix
empty 1, families 3, populated 10 passing (Windows); VS Code compatibility CI passed on Linux, Windows and macOS × minimum, latest, insiders
Failing first:
Unit tests (src/core/display-path-files.test.ts, plus cases in analyzer-patterns, analyzer-config, analyzer warm-up and tests/vscode/fixtures.test.ts) fail without the source changes and pass with them. Cases: inside/outside the workspace, Windows and POSIX, case rules (including case-sensitive WSL shares), \\?\ and \\?\UNC\ paths, file URIs with and without a host, VS Code URI paths, remote URIs (decoded), ./.. (not above a drive or share), prefix traps (/home/dev team, dev (old)), a workspace opened on or above the home folders, other accounts' homes (Linux, macOS, Windows, WSL mounts, shares, remotes), an account named home, counting once per request and once across workspaces, and label clashes.
e2e (tests/e2e/file-paths.spec.ts): builds both RPC payloads with the real analyzer for files under the test process's home, renders both panels, and checks text, title, data-tip and aria-label for the home path and user name. Both tests fail on main's analyzer.
VSIX: the synthetic VS Code chats attach their source file (#file) in the correction turn and log uri.path decoded, as VS Code does. The populated suite checks that every hot and referenced file is src/<session>/<file> and that neither panel shows the home folder. Against a VSIX packaged from main: both checks fail.
…e path or user name
Patterns' Hot files and Context Health's Top Referenced Files showed full
local paths, including the home folder and the user name. Both lists now
go through one browser-safe helper in display-path.ts (rankFiles): a file
inside its workspace folder is shown relative to it (src/app.ts), any
other file from ~, with account names hidden. Files are counted by where
they are, so relative, absolute, long-path and file-URI forms count once.
Editor chats keep their workspace folder only in the parse result's
source index, so the Analyzer (and the warm-up worker that precomputes
Context Health) now receives a session-to-folder map.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…elative file labels
VS Code logs uri.path decoded; the fixture wrote the percent-encoded form, so a
temp folder's ~ became %7E and no longer matched the workspace folder. The VSIX
checks now require every hot and referenced file to be src/<session>/<file>.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved path-handling defects expose account names, split identical files into separate entries, and inflate reference counts and Context Health percentages.
This PR extends the existing path-privacy helpers to Patterns and Context Health file lists, showing workspace-relative paths and redacting home folders and account names.
Changes:
Centralizes file-path normalization, ranking, and label disambiguation.
Passes editor-chat workspace roots through the analyzer and warm-up worker.
Adds unit, browser, and packaged-extension coverage, plus documentation and a changelog entry.
File
Description
tests/vscode/suite/populated.spec.ts
Checks relative file labels and home-path privacy in the packaged extension.
tests/vscode/fixtures.ts
Adds file references and decoded URI paths to fixtures.
tests/vscode/fixtures.test.ts
Verifies analyzer file labels from parsed fixtures.
tests/vscode/dashboard.ts
Adds helpers for inspecting labels and displayed attributes.
tests/e2e/harness.html
Allows analyzer-built file-list data in browser tests.
tests/e2e/file-paths.spec.ts
Tests file labels and privacy across both panels.
src/webview/panel.ts
Supplies editor-chat workspace roots to the analyzer.
src/extension.ts
Supplies workspace roots during summary export.
src/core/warm-up-worker.ts
Uses workspace roots when computing analytics.
src/core/warm-up-worker-protocol.ts
Carries and validates the workspace-root map.
src/core/display-path.ts
Adds file normalization, private labels, and shared ranking.
src/core/display-path-files.test.ts
Covers path formats, redaction, counting, and label collisions.
src/core/analyzer.ts
Distributes workspace roots to analyzers and warm-up.
src/core/analyzer.test.ts
Checks workspace-root forwarding to the worker.
src/core/analyzer-patterns.ts
Uses shared ranking for Hot files.
src/core/analyzer-patterns.test.ts
Tests relative Hot files labels and editor-chat roots.
src/core/analyzer-config.ts
Uses shared ranking for referenced files.
src/core/analyzer-config.test.ts
Tests relative referenced-file labels and counts.
src/core/analyzer-base.ts
Associates file occurrences with workspace context.
src/canvas/host.ts
Supplies workspace roots in the canvas host.
docs/content/measure/patterns.md
Documents Hot files path labels.
docs/content/improve/context-health.md
Documents referenced-file labels and disambiguation.
changelog.d/407.md
Records the file-list privacy and counting changes.
…ounted and shared homes
Review round 1 on #407:
- A file referenced from its own workspace and from another counted twice: files
are now keyed by their absolute path when known (a relative path is resolved
against the session's folder) and labelled inside a workspace folder when one of
their sessions had them there. Same-named checkouts are no longer folded.
- Two spellings of one file in one request counted twice: rankFiles takes each
request's files and counts a file once per request.
- file://host/... URIs lost their host: now read as //host/... so they match
their UNC workspace folder; file://localhost/... is local.
- Other accounts under /mnt/<drive>/Users and on a share named Users or home are
hidden (…).
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Path normalization merges distinct case-sensitive WSL files, while relative labels and workspace disambiguation prefixes can expose other users’ account names.
No open issues 🎉
3 previously missed issues
In code that hasn't changed since last review
Preserve case for WSL UNC file paths
src/core/display-path.ts:167
Case-folding every UNC path merges distinct files on WSL's case-sensitive filesystem. For example, //wsl.localhost/Ubuntu/home/dev/repo/Foo.ts and .../foo.ts produce the same key here, so rankFiles combines their counts (or drops one within a request), whereas the previous referenced-file ranking kept them separate. Preserve the Linux path's case for wsl.localhost/wsl$ shares while normalizing the host/share prefix.
Redact account names in ancestor-workspace paths
src/core/display-path.ts:196
The relative-path branch skips other-account redaction: with local home /Users/dev, workspace /Users, and file /Users/alice/proj/a.ts, both lists display alice/proj/a.ts. The same leak occurs for workspaces opened above Linux or WSL-mounted home directories. Redact the account-bearing absolute path before extracting the relative label, keep the counting key unchanged, and add tests for these ancestor-workspace cases.
Sanitize workspace roots in disambiguation labels
src/core/display-path.ts:237
With local home C:\Users\dev, files named src/app.ts in workspaces rooted at /home/alice and /home/bob get labels alice/src/app.ts and bob/src/app.ts when their workspace names are alice and bob. Sanitizing only the bare workspace name loses the home-folder context, exposing those accounts in Context Health's text and tooltip/accessibility attributes. Preserve the workspace root through LocatedFile, use it to sanitize the disambiguation prefix, and number remaining collisions.
…SL path case
Review round 2 on #407:
- A workspace opened above the home folders (/home, /Users, C:\) showed another
account in the relative label: accounts are hidden in the whole path, then the
relative part is taken.
- The name put in front of clashing labels came from the bare workspace name
(alice): it now comes from the workspace folder, so another account's home
shows as ….
- WSL shares hold case-sensitive Linux files: only their host and distribution
are compared without case.
- VSIX check reads the Top Referenced Files list from the page instead of the
screen, which a small window cut off below the fold (Windows and macOS CI).
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Review round 2 (7dd06ff). The round had no inline threads; these three came from the review body ("previously missed").
Item
Verdict
Fix
Failing-first test
WSL shares compared without case merge Foo.ts and foo.ts
valid
on //wsl.localhost/<distro> and //wsl$/<distro> only host and distribution ignore case; other shares and drives still do
"keeps the case of files on a WSL share…"
Workspace opened above the homes (/Users, /home, C:\) shows alice/proj/a.ts
valid
accounts are hidden in the whole path, then the relative part is taken: …/proj/a.ts, Users/…/a.ts
"hides other accounts below a workspace opened above the home folders"
Prefix for clashing labels from the bare workspace name (alice/src/app.ts)
valid
prefix comes from the workspace folder when known: …/src/app.ts, …/src/app.ts (2)
"names clashing files by their workspace folder…"
Also fixed: VS Code compatibility failed on Windows and macOS (Ubuntu passed). The CI screenshot shows the breakdown opened but below the fold of the small window, and Selenium's getText() reads only visible text. The check now reads the list's data-tip labels from the page and drops a redundant click on the already-active Context Quality tab.
Gates: npm run check passed (lint 488, main 489; 4289 tests). npm run test:vscode -- --vsix … 1 + 3 + 10 passing (Windows). Full e2e locally: 257 passed, 3 failed with 30 s timeouts in unrelated pages (dashboard navigation, loading, context-mgmt keyboard table); they pass 12/12 alone, and main's full suite on the same machine also had 2 random timeouts (256 passed), so this machine is loaded; CI is the reference.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Path redaction still exposes other users’ account names when the local account is named home and in mounted Windows home paths accessed through WSL or URI forms, affecting both file lists.
No open issues 🎉
2 previously missed issues
In code that hasn't changed since last review
Redact account names in WSL-mounted Windows home paths
src/core/display-path.ts:196
Mounted Windows homes still expose another account when logged through WSL UNC paths, file URIs, or remote URIs: both file://wsl.localhost/Ubuntu/mnt/c/Users/alice/notes.md and vscode-remote://wsl+Ubuntu/mnt/c/Users/alice/notes.md retain alice when the local account is dev. These labels reach both file lists, including Context Health's tooltip and accessible label. Recognize /mnt/<drive> after a WSL host/distribution or URI authority, and add regression cases for these forms.
Redact structural home paths before replacing the account name
src/core/display-path.ts:201
For a local account named home (home = /home/home), this order turns /home/alice/project/a.ts into /…/alice/project/a.ts: hideAccountName removes the structural home segment before hideOtherHomeAccount can recognize it. Both file lists therefore still expose alice. Apply the structural home-folder redactions before replacing occurrences of the local account name.
…s behind WSL and URIs
Review round 3 on #407:
- /mnt/<drive>/Users/<name> behind a WSL share or a remote URI kept the name.
- An account named home hid the /home/ segment before other accounts' homes were
found there; home folders are now hidden first.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Review round 3 (46de0a3). No inline threads; two items from the review body ("previously missed").
Item
Verdict
Fix
Failing-first test
/mnt/c/Users/alice behind a WSL share or vscode-remote:// URI keeps alice
valid
the mounted-home rule also applies after a WSL share or a URI authority
"hides other accounts in a mounted Windows home reached through WSL or a remote URI"
Local account named home hides /home/ before other accounts are found there
valid
home folders are hidden first, then the account name (which, for an account named home, also hides the home folder: /…/…/project/a.ts)
"hides other accounts when the local account is named home"
Note for #405: its workspaceDisplayLabels applies hideAccountName before hideOtherHomeAccount too, so the same home-account ordering case applies to workspace hover paths there.
Gates: npm run check passed (lint 488, main 489; 4291 tests); e2e file-paths, patterns, prompt-cache specs: 28 passed.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human review is needed because remote-URI edge cases can expose other users’ account names and incorrectly determine file identity or workspace membership.
Review round 4 on #407 flagged remote-URI edge cases. Remote URIs were kept
verbatim, so a percent-encoded account name escaped the home-folder rules, and
encoded, differently cased or dot-segment spellings of one file counted apart
and didn't match their workspace folder. Their scheme and host are now lower
case and their path decoded and resolved like any other path.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Review round 4 (head before this: 46de0a3). The review had no threads and no listed items; its overview said remote-URI edge cases can expose account names and mis-determine file identity or workspace membership. How I read it: remote URIs (vscode-remote://…) were kept verbatim, so
a percent-encoded name (/home/al%69ce) or host (ssh-remote%2Bbox) escaped the home-folder rules;
encoded, differently cased (scheme/host) or ./.. spellings of one file counted apart and didn't match their workspace folder.
Fix: remote URIs now get a lower-case scheme and host and a decoded, resolved path, like other paths. Failing-first tests: "reads remote URIs decoded, so encoded names are hidden and folders match" and "counts one remote file once however its URI is spelled". Real data on this machine has no remote URIs in either list, so the figures in the description don't change.
Gates: npm run check passed (lint 488, main 489; 4293 tests); e2e file-paths + patterns: 8 passed.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
UNC parent-path resolution incorrectly allows .. to escape the share root, causing workspace files to appear external and splitting request counts across equivalent path spellings.
Review round 5 on #407: for a workspace on \\\\server\\share, ../a.ts resolved to
//server/a.ts and looked external. A share, like a drive, is now the floor for
parent segments.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…host-less WSL paths
Review round 6 on #407 (overview only): vscode-remote://box/c:/Users/<name> and
/wsl.localhost/<distro>/home/<name> (a WSL file URI whose host ended up in the
path) kept the account name. One regex now lists every place another home
folder can start that hideOtherHomeAccount doesn't look.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Review round 6 (head before this: 64c7509). No threads or listed items; the overview said remote Windows paths and WSL paths without their host can bypass home redaction. How I read it, and the fix in the new head:
Form
Before
After
vscode-remote://box/c:/Users/alice/a.ts
alice shown
…/c:/Users/…/a.ts
/wsl.localhost/Ubuntu/home/alice/a.ts (a WSL file URI with its host in the path)
alice shown
/wsl.localhost/Ubuntu/home/…/a.ts
file:///wsl$/Ubuntu/mnt/c/Users/alice/a.ts
alice shown
/wsl$/Ubuntu/mnt/c/Users/…/a.ts
Failing-first test: "hides other accounts on a remote Windows drive and on a WSL path without its host". The places another home folder can start are now one documented regex, rather than one rule per review round.
Gates: npm run check passed (lint 488, main 489; 4295 tests).
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed because path-label numbering can still produce duplicate labels for distinct files, making Context Health entries indistinguishable.
Review round 7 on #407 (overview only): a file named like a numbered label
(x (2)) could still share a label with a numbered one.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Review round 7 (head before this: 1705986). No threads or listed items; the overview noted that numbering could still give two files the same label. Read as: a file literally named like a numbered label (api/src/a.ts (2)) next to two clashing src/a.ts got the same api/src/a.ts (2). Fix in 8f90c6b: a label is numbered until no shown label has it (… (3)). Failing-first test: "numbers clashing labels past a file that is already named like a number". Cosmetic; no privacy impact.
Gates: npm run check passed apart from scripts/build-changelog.test.mjs timing out on a git clone under load (passes alone, 6/6; untouched by this PR); lint 488 (main 489); e2e file-paths.spec.ts 2 passed.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed because whitespace normalization can merge distinct POSIX files while assigning different counting keys to native and URI aliases of the same file.
Review round 8 (8f90c6b): no threads and no listed items. The overview mentions that trimming whitespace could merge a POSIX file whose name ends in a space with its trimmed twin, and that some native/URI spellings might count apart. Declined for this PR: it is a counting nuance for file names with leading or trailing spaces, with no effect on what is hidden, and rounds 4–8 have each raised a narrower path-normalization edge without a concrete case. Stopping the review loop here; happy to pick up a concrete repro in a follow-up.
All CI checks on 8f90c6b: CodeQL, Dependency Review and VS Code compatibility (Linux, Windows, macOS × minimum, latest, insiders) passed; CI running.
…before the account (review)
- Copilot app worktree folders are named `<handle>-<words>`, so the signed-in
GitHub handle reached workspace names: Patterns cards, the sidebar list and
the @aicoach context, credits and code tools. Folder names drop a leading
signed-in handle (the rule branch names already follow, scrubBranch) in
every parser, Top workspaces labels and hover paths, and the Current filter
name. CACHE_VERSION 36.
- workspaceDisplayLabels hides other accounts' home folders before the account
name, so an account named `home` can't expose `/home/<other>` (as in #407).
- A label is numbered until no shown label has it (`web`, `web (2)`, `web`).
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…(review)
A WSL mount (/mnt/c/Users/<x>, also behind a WSL share or a remote URI), a host-less WSL path, a share named home or Users, and a remote's Windows drive are recognized as other accounts' homes, as in the file lists (#407): hidden in hover paths, and such a home folder is named ~.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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
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.
Description
Patterns' Hot files (and the Busiest Copilot Files list under Explore more) and Context Health's Top Referenced Files showed full local paths, including the home folder and the user name. They now show:
src/app.ts;~for the home folder:~/notes/todo.md;…:/home/…/proj/a.ts.Same-named files are told apart by their relative path (
src/a/index.ts,src/b/index.ts). When different files of two workspaces share a relative path in Context Health's per-harness list, the workspace's name goes in front (api/src/app.ts,web/src/app.ts); labels that are still equal get a number, as #405 does for workspaces.How
src/core/display-path.ts(fileDisplayPath,rankFiles), reusing the existingshortenHomePath/hideAccountNamefrom feat(loading): redesign the loading screen (card, details drawer, ready state) #393. Both lists go throughrankFiles, which also counts a file once per request, and once whichever workspace logged it, whether it was logged relative, absolute, as a\\?\long path, a file URI (with or without a host) or VS Code's/c:/…URI path. The Hot files used to countfolder/file(the last two segments), which merged different files and, for Windows paths, kept the whole path.Analyzernow takes an optional session → folder map (workspaceRootsOf(parseResult.sessionSourceIndex)) from the panel, the canvas host and the summary export command, and passes it to the warm-up worker, which precomputes Context Health.Scope (decided by the user)
data-tip/aria-label, and the same lists in the@aicoachchat tools and the summary export. The chat tools and the export don't include either list today (checked on real data, see below), so nothing changes there.Relation to #405
#405 (workspace names) and this PR both build on
display-path.tsfrom #393 and need two of #405's helpers: Windows long-path (\\?\) handling and hiding other accounts' home folder names. This PR copies those exact lines (stripLongPathPrefix, thedecodeFileUrichange,accountName,otherHomeAccount,hideOtherHomeAccount) rather than stacking on #405, so either can merge first:src/canvas/host.ts, and both PRs appending new functions at the end ofdisplay-path.ts. Resolution is "keep both" in each.src/core,src/canvas,src/webviewand the fixture tests).Workspace names on the Patterns cards and in the chat tools are #405's scope and are not changed here.
Real data (read-only)
Canvas host over this machine's real logs (fake
HOMEwith junctions to the real dot-folders, realUSERPROFILE), callinggetProjectOverviewandgetConfigHealthfor every filter the page offers (unfiltered, each of 420 workspaces, each of 5 harnesses: 426 calls each). Count of distinct labels that contain the home path or the user name:@aicoachchat tools: these listsAfter the change, 70% of the hot files (341 of 486) and 69% of the referenced files (695 of 1010) on this machine are shown relative to their workspace; the
~/ones are files outside any workspace (session plans, skills, other checkouts). Fewer distinct labels than on main because the same file logged in different forms now counts once.Related Issues
Follow-up to #393. Relates to #405.
Validation
At head 8f90c6b (after 8 Copilot review rounds; see the round comments).
npm run checkscripts/build-changelog.test.mjs(git clone under load); it passes alone (6/6) and isn't touched herenpm run buildnpm run packagenpm run check-sizedist/extension.js1.87 MB of 2 MB)E2E_PORT=<free port> npm run test:e2econtext-mgmt,output-races,token-types) pass alone (56/56). On the same machine main's full suite also had 2 random timeouts. CI's e2e passed on 1705986npm run test:vscode -- --vsix ai-engineer-coach-0.1.0.vsixFailing first:
src/core/display-path-files.test.ts, plus cases inanalyzer-patterns,analyzer-config,analyzerwarm-up andtests/vscode/fixtures.test.ts) fail without the source changes and pass with them. Cases: inside/outside the workspace, Windows and POSIX, case rules (including case-sensitive WSL shares),\\?\and\\?\UNC\paths, file URIs with and without a host, VS Code URI paths, remote URIs (decoded),./..(not above a drive or share), prefix traps (/home/dev team,dev (old)), a workspace opened on or above the home folders, other accounts' homes (Linux, macOS, Windows, WSL mounts, shares, remotes), an account namedhome, counting once per request and once across workspaces, and label clashes.tests/e2e/file-paths.spec.ts): builds both RPC payloads with the real analyzer for files under the test process's home, renders both panels, and checks text,title,data-tipandaria-labelfor the home path and user name. Both tests fail on main's analyzer.#file) in the correction turn and loguri.pathdecoded, as VS Code does. The populated suite checks that every hot and referenced file issrc/<session>/<file>and that neither panel shows the home folder. Against a VSIX packaged from main: both checks fail.Checklist
npm run checkpasses (typecheck + lint + spellcheck + knip + tests)changelog.d/<PR number>.mdfragment