Repository navigation
feat(web): show folders on file links, set per browser - #239
Conversation
|
This PR changes the test suite by +5 test cases (browser +1, unit +4, server 0). New browser test files: Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Adds fileLinkPathDepth (1 to 5, default 1) to the client settings. The stored field decodes any bad value to 1, so one bad value never fails the whole client-settings blob; the patch field stays strict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
b0e8017 to
d84488d
Compare
Chat file links can show the last folders of their path before the file name, set per browser in Settings > Appearance > File link folders. The default keeps today's label. A file name that repeats in a message keeps its folder hint after the name and gets no prefix. CSS draws the folders as generated content, so the label text that thread find, copy and CSV read stays the same. The label box is right-to-left with the name first, so a narrow chip clips the folders' start before the name, and it stays inline so triple-click still selects the whole paragraph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d84488d to
fc420db
Compare
This pull request adds a setting that shows folders before the file name on file links.
改了什么行为
Behaviour change: yes. With Settings → Appearance → File link folders above "File name only", file links in messages and Markdown previews show up to four folders before the name, such as
review-pipeline/glossary.md · L12. A long folder part loses its start first. A file name that repeats in one message keeps today's folder hint after the name. The default shows names only, as before. Each browser, and the desktop app, keeps its own choice; the server never gets it.Why
A file link shows only the file name, so the user often has to hover it to see where the file is. CSS draws the folders, so the label text that find in thread, copy and CSV export read stays the same. Mobile does not change.
Checks
vp run check:changed.How to undo
Revert both commits. A saved choice stays in client settings and is ignored.
Checks in detail
.., a name with\, repeated names) and the saved value (a missing or bad value reads as file name only and keeps the other settings).