Allow workspace: to target a checked-out repository alias#332
Allow workspace: to target a checked-out repository alias#332jamesadevine merged 3 commits intomainfrom
workspace: to target a checked-out repository alias#332Conversation
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/ca667e13-6614-485c-a083-01e258ba39aa Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
|
/rust-review |
|
❌ Rust PR Reviewer was cancelled. Please review the logs for details. |
|
/rust-review |
|
✅ Rust PR Reviewer completed successfully! |
🔍 Rust PR ReviewSummary: Mostly looks good — clean implementation with solid tests. Two issues worth addressing before merge. Findings🐛 Bugs / Logic Issues
|
|
@copilot Address feedback and suggestions |
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/8b13710b-0a0e-4fd4-bafd-15fc35438367 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Addressed all four findings in a49bc9e:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
| } | ||
| Ok("repo".to_string()) | ||
| } | ||
| alias => { |
There was a problem hiding this comment.
@copilot do we not have a validators library that will detect path escaping?
There was a problem hiding this comment.
Good catch — src/validate.rs is the shared home for structural validators but it didn't have a path-segment helper (only is_valid_command_path for full paths, plus an inline .. check buried in cache_memory/execute.rs). Added validate::is_safe_path_segment in 6e9979c with its own unit tests, and switched the workspace alias check to use it.
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/91abc514-863b-4929-b5ff-3f394f82236d Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
This is an empty commit to trigger release-please to open a release PR so that the changelog can be manually updated to include changes from commits #330, #331, and #332 which were merged without Conventional Commit prefixes and were silently dropped from the changelog. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The
workspace:front matter field only acceptedrootorrepo, leaving no way to point the agent's working directory at a specific additional checkout when multiple repositories are pulled in.Changes
workspace:— in addition torootandrepo, the field now acceptsself(synonym forrepo) and any alias from thecheckout:list, which resolves to$(Build.SourcesDirectory)/<alias>.checkout:and there must be at least one additional checkout; otherwise compilation fails with a message naming the bad value and listing valid choices.compute_effective_workspacenow returnsResult<String>.generate_working_directory— explicit arms forroot/repoplus analias:<name>sentinel; unexpected values trip adebug_assert!.AGENTS.mdupdated for theworkspace:field and the{{ working_directory }}template marker, including the example below.Example