feat(agents): Configuration tab on the Agents page [20/21] - #341
Open
gusfcarvalho wants to merge 1 commit into
Open
gusfcarvalho wants to merge 1 commit into
gusfcarvalho wants to merge 1 commit into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Failed permission hydration currently enables optimistic admin access and triggers unauthorized key requests.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Wires agent remote configuration into the Agents page with permission-aware routing and UI.
Changes:
- Adds the Configuration tab and lazy-loaded configuration workspace.
- Gates agent navigation on
agent:readwhile retaining admin-only CRUD and key controls. - Adds coverage and stabilizes PrimeVue tab tests through automatic unmounting.
| File | Description |
|---|---|
src/components/agents/config/AgentConfigTab.vue |
Adds the configuration interface. |
src/components/agents/config/__tests__/AgentConfigTab.spec.ts |
Tests configuration states and permissions. |
src/views/admin/AgentsView.vue |
Integrates the tab and permission gates. |
src/views/__tests__/AgentsView.spec.ts |
Tests admin and reader behavior. |
src/views/LeftSideNav.vue |
Changes Agents navigation to agent:read. |
src/views/__tests__/LeftSideNav.spec.ts |
Tests non-admin Agents visibility. |
src/router/index.ts |
Changes the route permission. |
src/router/__tests__/index.spec.ts |
Tests route permission metadata. |
src/views/__tests__/AiDiagnosticsView.spec.ts |
Adds automatic wrapper cleanup. |
src/views/system-security-plans/__tests__/sspViews.spec.ts |
Adds automatic wrapper cleanup. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+554
to
+562
| const permissionsReady = ref(loaded.value); | ||
| if (!permissionsReady.value) { | ||
| Promise.resolve(hydrate()) | ||
| .catch(() => undefined) | ||
| .finally(() => { | ||
| permissionsReady.value = true; | ||
| }); | ||
| } | ||
| const isAdmin = computed(() => permissionsReady.value && canManageAdmin.value); |
gusfcarvalho
force-pushed
the
agent-config/20-config-tab
branch
from
October 5, 2026 16:32
b7f7922 to
89bb1db
Compare
This was referenced Oct 6, 2026
Layer 20 of 21 in the stacked split of #318. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ccf-lisa
Bot
force-pushed
the
agent-config/20-config-tab
branch
from
October 6, 2026 09:40
89bb1db to
0e1f629
Compare
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.

Part 20 of 21 of the stacked split of #318 (agent remote configuration). Every layer adds the final version of its files from #318, and only imports from layers below it, so each layer passes
make reviewableon its own. Nothing is reachable in the app until layer 20 wires the Configuration tab in.What
Wires everything up:
AgentConfigTaband the Configuration tab on the Agents page. The agents route and side nav are now gated onagent:read(keys and CRUD inside the page stay behindadmin:manage).Tests
Specs for the tab, the Agents view, router and side nav;
AiDiagnosticsView.spec.tsandsspViews.spec.tsnow unmount wrappers so PrimeVue's TabList timer can't fire after teardown.🤖 Generated with Claude Code