Skip to content

feat(agent-config): configuration history and revert [19/21] - #340

Open
gusfcarvalho wants to merge 1 commit into
agent-config/18-plugin-tabsfrom
agent-config/19-history
Open

gusfcarvalho wants to merge 1 commit into
agent-config/18-plugin-tabsfrom
agent-config/19-history

Conversation

@gusfcarvalho

Copy link
Copy Markdown
Contributor

Part 19 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 reviewable on its own. Nothing is reachable in the app until layer 20 wires the Configuration tab in.

What

Configuration history: list of past overlay versions, YAML/merge diff between versions and revert.

Tests

AgentConfigHistory.spec.ts.

🤖 Generated with Claude Code

Copilot AI balanced review requested due to automatic review settings October 5, 2026 10:52
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 0dd15f3d-a450-4ad6-8e2a-85017c88def0
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Revert submission must re-check eligibility when confirmation is already open.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Adds configuration history for agent overlays, ready for Configuration-tab integration in layer 20.

Changes:

  • Lists revisions with pagination and YAML viewing/comparison.
  • Supports reverting with comments and API error handling.
  • Adds tests for history, revert outcomes, and overlapping requests.
File Description
src/​components/​agents/​config/​AgentConfigHistory.vue Implements history, comparisons, and revert dialogs.
src/​components/​agents/​config/​__tests__/​AgentConfigHistory.spec.ts Tests history loading, actions, errors, and request ordering.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +432 to +433
async function doRevert() {
reverting.value = true;
Layer 19 of 21 in the stacked split of #318.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ccf-lisa
ccf-lisa Bot force-pushed the agent-config/19-history branch from b22cb23 to 6f3fd1c Compare October 6, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants