Repository navigation
test(native-chat): carry over path-link cases after host checks - #26697
Closed
brennanb2025 wants to merge 1 commit into
Closed
brennanb2025 wants to merge 1 commit into
brennanb2025 wants to merge 1 commit into
Conversation
Co-authored-by: Kelvin Amoaba <[email protected]>
7 of 9 tasks
Contributor
Author
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ELI5
Chat used to underline commands, web addresses and version numbers as files, then report that they could not be found when clicked. #26675 adds a check on the workspace's host before underlining a path; this tests-only PR carries over the useful cases from Kelvin's #26586 to protect that behavior.
What Changed
Stacked on #26675, with base
brennanb2025/sta-9683-click-fileat978741679ee. Users see no additional change from this child PR: missing path candidates stay plain, confirmed paths still link, and existing spaced paths remain usable.Adds 15 regression cases across rendered chat markdown and the terminal's real path resolver and existence-check provider. The current #26675 head deliberately retains chat's existing path-shape rules before the host check; this stack preserves that policy.
Decisions from #26586
/orca-native-chat:orca-chat-visuals/code-review,/clear and /compact/code-reviewactually names an existing path, it remains usable in both surfaces./api/v1HTTP/1.1,1.5/2.0,z-ai/glm-5.3git log origin/main..HEADin inline codeexample.com/docs/guide.html,127.0.0.1/api/data.jsonexample.comcan still link; no hostname allowlist is added.conf.d/nginx.conf,v1.2/notes.md,docs/archive.7z,man/ls.1,lib/libfoo.so.1/tmpas a bare root/etc/hosts,/usr/local/bin,/data/out.json,/data/raw,/mnt/c/Users/me/notes.md,/Users/me/project/src/main.ts:12My Folder/notes.md,"Brennan's Folder/notes.md", relative spaced paths with line suffixes~/Library/Application Support/orca/log.json, Windows spaced paths and line/column suffixesfile://URIs, including extensionless basenames, spaces and line anchorsdocs/Makefile,.github/CODEOWNERSin chat./prefix already makes these eligible. The terminal already recognizes the paths without that prefix, which the new terminal test covers.Why
The broken-click cases are already addressed by #26675's host check. Regression tests preserve Kelvin's useful examples without adding a competing chat-only classifier, rejecting legitimate paths with command-like names, removing working spaced-path links, or increasing SSH checks through the expanded bare-name list.
Kelvin's examples are carried over from #26586 and credited in the commit as
Co-authored-by: Kelvin Amoaba <[email protected]>, matching his PR-head author identity.Linked Issue
Refs STA-9683, #26675 and #26586.
Visual Proof
N/A — this child PR changes tests only and has no additional visual or interaction change; #26675 owns the user-facing behavior change.
Testing
Renderer typecheck passed using the brief's queued
tsccommand. The 15 explicit terminal detection/provider/hit-testing, CommentMarkdown link and native-chat file-link suites passed with 290 tests and--maxWorkers=2.orca-ci-checks --no-typecheck: 21/22 checks passed. The only failure is the existingmax-lineserror (301 counted lines) insrc/main/native-chat/agent-session-wire/structured-agent-session-host.ts, which is byte-for-byte unchanged from #26675; all changed-code checks passed. GitHub CI fails at the same inherited lint error (static analysis log); the dependentverifycheck also fails after preflight fails and downstream checks are skipped. Those skipped jobs, including the full CI test/build runs, were not verified by this run.Tests ran on macOS. Existing unit suites cover Windows and WSL path strings and mocked remote-host routing; no live Windows, Linux, SSH or Electron session was exercised, and no full build was run.
Review
Agent skill upstream boundary
Notes
No production code, wire format, persisted data, bare-name candidate list or lockfile changes. Terminal fixtures use terminal filename lists; chat fixtures also cover the existing chat-specific prose, quote and inline-code handling.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)Author: Brennan Benson (@BrennanKB5)