Repository navigation
fix(platform): show unavailable equipped connectors - #4312
Merged
Merged
Conversation
yannickmonney
commented
Oct 4, 2026
yannickmonney
left a comment
Contributor
Author
There was a problem hiding this comment.
Independent review of PR #4312 at 253027b36f512430421e76a8d3972a4572d99ccc: accepted (source-level), CI pending
- Reviewer: agent #4
5f5307c9, rune1983710(TALE-688, card8f5fc03c, dispatched by manager runb4fb3f4d). - Author: Codex #9
b7c66e31, run76919bce(TALE-197 / #3656). TALE-197 was reassigned from agent #4 to Codex #9 before any run of mine on it. Its only run is76919bce, so I am not the author. - Form: a commit-bound COMMENT review, because the fleet's GitHub identity is shared.
- Head: confirmed at 15:08Z and again at 15:24Z, before posting. Base
9e8f87f68. - Composition: the PR merges cleanly with
main3af9e704d, which is the composition I tested. It also merges cleanly with the newermaindcfca9819. That commit (#4277) touches only sandbox files and the manual register, so none of the files reviewed here.
Criteria
- A stored grant with no active credentials is a checked, unavailable, removable row, like a skill. Met.
skills-menu.tsx:193-198appends a"slug" (unavailable)row for every stored connector slug that is missing from the roster. It is built the same way as the skills fallback at:187-192.- Probe P1 drives the real
ProjectAgentDialogwithconnectors: ['github']and an empty roster. The row renders witharia-checked="true".
- Unticking it persists an empty list. Met.
- P2: untick the row, make an unrelated instructions edit, then Save.
updateAgentis called once withconnectors: []. - Automation agent node (N1): unticking calls
onChange({ connectors: undefined }).
- P2: untick the row, make an unrelated instructions edit, then Save.
- Unrelated saves no longer resubmit a hidden grant. Met.
- P3: a grant the admin keeps is still submitted (
['github']), but only while its checked row is on screen. That is the skills behaviour the issue asks for. - P2 covers the removed case.
- P3: a grant the admin keeps is still submitted (
- The selected count matches the visible rows. Met.
- P1: the trigger reads
Skills (1)with one checked row, andSkillsafter unticking. - M1 (mixed state):
Skills (5)with exactly five checked rows:Word documents,"gone-skill" (unavailable),Slack,"github" (unavailable),Find tasks. Unticking the stale connector keepsslack. - On
main, M1 shows four checked rows underSkills (5), which is the reported defect.
- P1: the trigger reads
- The connected-roster control still works. Met.
- P4: with GitHub connected and equipped there is one checked
GitHubrow, no unavailable twin, and the trigger readsSkills (1). Untick plus Save sendsconnectors: []. - P4 passes on the head, on
mainand on the composition.
- P4: with GitHub connected and equipped there is one checked
- EN/DE/FR. Met.
- No new keys.
chat.skills.unavailableOptiontakes only the slug in all three locales (en.yml:1474,de.yml:1518,fr.yml:1530). - M2 renders the row as
"github" (unavailable),"github" (nicht verfügbar)and"github" (indisponible).
- No new keys.
- The regression fails on
main. Met.- The PR's test file on
main's source gives 1 failed / 5 passed. Only the new test fails, with:Unable to find role="menuitemcheckbox" and name ""github" (unavailable)".
- The PR's test file on
What I ran
- Setup: installed Node (
bunx vitestfollows the node shebang), one worker, the jsdom UI config. Dependencies were hard-linked; nothing was installed. - Head: PR suite 6/6; my probes 10/10.
main3af9e704d:- PR test file: 1 failed / 5 passed.
- Probes: 9 failed / 1 passed. Only the P4 control passes.
- Composition (
merge-treeofmain+ head):- Probes: 10/10.
- PR suite plus four consumer suites: 41/41. The consumer suites are
project-agent-dialog,project-agents-tab,agent-node-fieldsandblank-automation-dialog.
- Mutants at the head:
- B (drop the stale rows) and C (raw slug label) are killed by the PR's own test.
- A (drop the roster filter:
.filter(() => true)) survives the PR's suite and all four consumer suites (38/38 at the head). Only my probes M1, P4 and P5 kill it.
- Static checks:
- Type-aware
oxlinton both files: clean (exit 0). A seeded unused variable proved the linter was live. oxfmt --check: clean.- Isolated
tsc6.0.2 over both files: 0 diagnostics. - commitlint: clean.
bun run lint:manual: exit 0.- Local OpenGrep: 0 findings.
- Type-aware
- Author claims I reproduced: UI Vitest 6 passed, type-aware Oxlint,
lint:manualand OpenGrep. I did not rerunlint:links.
Findings (none blocking)
- N1 (LOW, recommended): no committed test covers the connected path.
- Mutant A survives every committed test.
- Under that mutant, every connected and equipped connector gets a
"github" (unavailable)twin next to its real row. - Fix: add one control case to
skills-menu.test.tsxwith roster[{ slug: 'github', label: 'GitHub' }]andconnectors: ['github']. It should assert exactly one checked row and no/unavailable/row, like my P4 and M1.
- N2 (LOW, existing behaviour, follow-up): connectors read "(unavailable)" before the catalog loads.
project-agents-tab.tsx:105passescatalogQuery.data?.connectors ?? []to the dialog.- So while the catalog loads, each stored connector now reads "(unavailable)" (P5). It does the same for as long as a catalog read fails, because the tab has no error branch.
- Before this PR the grant was hidden instead.
- Equipped skills already behave this way (
skills ?? []), so this matches skills; it is not a regression. A follow-up could keep stale rows out until the roster has loaded.
- N3 (LOW, optional): manual layer.
SKILL-F13documents only the unavailable skill row.- Extending its last sentence to connectors, or adding a
reference/automation.mdrow forskills-menu.test.tsx, would follow the rule "ship new behaviour with its box".
- Scope note: tools have no fallback row, so a stored tool that is missing from the catalog would be counted without a row. That is outside #3656, and I did not check whether such a tool can be stored.
Not run
- No real browser, visual gate, screen reader, or live backend/PostgreSQL run.
- No live credential disable on a running stack.
- No full UI suite and no whole-workspace
tsc. - CI at 15:24Z: the five
Resolve sourcejobs passed. The other 16 checks are pending (queued). I did not rerun, cancel or wait for them.
Merge lane
Under root's 08:15Z rule this ACCEPT binds only to 253027b3. Merge only after exact-head CI is green, by a merger distinct from the author. A new head needs a fresh review. I did no merge, push or card move.
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.
What changed
Verification
bunx vitest run --config vitest.ui.config.ts app/components/skills/skills-menu.test.tsx --maxWorkers=1(6 passed)bunx oxlint --type-aware app/components/skills/skills-menu.tsx app/components/skills/skills-menu.test.tsx(passed)bun run lint:manual(passed)bun run lint:links(passed)unavailableOptionkeys verified; no migration requiredHeavy browser/E2E/backend/PostgreSQL proof was not run per task limits.
Closes #3656