Repository navigation
fix(web): open directory links in Files sidebar - #1232
Conversation
Chat file links always opened a file resource, so directories fell through to the regular-file error page. Stat the target and route directories to the existing Files tab, preserving session-targeted opening and closing old watches when the tree root changes.
|
You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
感谢修复聊天中目录链接误走普通文件预览报错的问题!合入前麻烦补充几项:
先标 |
|
@iruriQ 已按复审补齐:新增目录/普通文件回归(与 remote-preview 合计 19/19)、目录 |
|
感谢跟进补齐截图、回归测试与 |
Summary
Validation
workspace-links.test.tsandremote-preview.test.ts— 19/19 passed.npm run build --workspace=@codexhost/web-ui— passed..link returned Files to the sessioncwdwithout a trailing/..tscreported existing DSH dependency/type diagnostics. The full repository suite was not run locally; CI remains the full-suite gate.UI evidence
Directory link opened in Files:
Regular-file preview retained with line 7 highlighted:
Directory link context menu:
File-open RPC cost
This change retains the separate
workspaceFiles.statlookup. Extension heuristics misclassify dotted directories and extensionless files; using the preview resource as-is would tie directory navigation to a retrying file watch. A follow-up can make the first metadata result independent of the watch handshake so navigation and preview can share it.🤖 Generated with Claude Code