GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — refactor(coderd/x/chatd/chattool): drop the read_skill alias fallback by ibetitsmike · Pull Request #31123 · coder/coder Conversation
|
| Mutant | Fails on main |
Fails on this branch |
|---|---|---|
Fallback restored (skill.go from main) |
n/a | TestReadSkillToolsRequireAliasResolver |
No nil check in ReadSkill, or in ReadSkillFile |
n/a | TestReadSkillToolsRequireAliasResolver (nil function call) |
Response name is resolved.Alias |
nothing | PersonalQualifiedAliasPreservesAlias, WorkspaceQualifiedAlias |
| Pinned body empty | PinnedBodyFromMeta, PinnedBodyServedWhenWorkspaceUnreachable, WorkspaceQualifiedAlias |
the same, and CollisionAliasRoundTrip |
10 others: no dir, no supporting files, empty file content, ambiguity reported as not found, resolver or loader error text returned, deleted stored skill reported as a load failure, file read allowed for a personal skill, hidden skill not matched, hidden skill meta file served |
at least one test each | the same tests |
A copy of skill.go with a syntax error fails to build in both runs, so the overlay applies.
main a tool that echoed resolved.Alias passed. The real lookup resolves personal/my-skill to the bare alias my-skill, so the tests now check that the tool returns the requested name.CollisionAliasRoundTrip no longer calls the resolver itself. It checks each response body instead. The fake said that a bare deploy was not found; the real lookup says it is ambiguous, which AmbiguousLookupSurfacesAliases covers.ResolveAliasErrorIsSanitized keeps a fake, because the real lookup returns only not-found and ambiguous errors.ResolveAlias and rewrites resolveSkillAlias, so it conflicts with this PR. Whichever merges second must reconcile.go test ./coderd/x/chatd/chattool/ -count=1: pass.go test ./coderd/x/chatd/chattool/ -race -count=3 -run Skill: pass.go test ./coderd/x/chatd/ -run Skill: pass.go vet ./coderd/x/chatd/chattool/ ./coderd/x/chatd/: no issues.make pre-commit with CODER_HOOK_RUN_ALL=1 passed.Xum, an AI agent, opened this PR for @ibetitsmike and wrote this description.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@codex review
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@codex review
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
d67de4d to
6ec828b
Compare
|
Rebased onto main (
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
When ReadSkillOptions.ResolveAlias was nil, read_skill and read_skill_file treated the name as a workspace skill from GetSkills. Only tests relied on that: the one production caller always sets a resolver. Both tools now return "skill alias resolver is not configured" instead, and the tests resolve aliases with the real MergeSkills and Lookup.
…an alias resolver main added AgentRefusalIsToolError and AgentErrorsAreRewrittenForModel without ResolveAlias. read_skill_file now requires a resolver, so both subtests failed with "skill alias resolver is not configured" before reaching the agent.
6ec828b to
bf11ba9
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.