Skip to content

Fix: agent version apply bad - #21555

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
wangq8:bugfix/fix-apply-agent-version-bad
Oct 27, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
wangq8:bugfix/fix-apply-agent-version-bad

Conversation

@wangq8

@wangq8 wangq8 commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@wangq8
wangq8 requested a review from cike8899 October 27, 2026 08:59
@wangq8 wangq8 added the ci Continue Integration label Oct 27, 2026
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

The pull request is closed.

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 20d533d9-fc56-4691-8854-090d87884f17
Commits

Reviewing files that changed from the base of the PR and between 6e2214a and e1b4588.

Files selected for processing: 1
  • web/src/pages/agent/version-dialog/index.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

The version dialog now restores a selected version by calling applyVersion without first saving the current agent. It closes after a successful apply. The restore button remains disabled for the latest or unselected version and while applyVersion is loading.

Changes: Version Restore

Layer / File(s) Summary
Apply the selected version
web/src/pages/agent/version-dialog/index.tsx
Restore no longer calls useSaveAgent or uses its loading state. The dialog closes when applyVersion succeeds. The restore button is disabled for the latest or unselected version and while applyVersion is loading.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Merge Risk: Minimal · previous review e1b45

The selected version is applied directly. No merge-blocking regression was identified.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The pull request has no description. It does not include the required Summary section or explain the problem and intended fix. Add a Summary section that describes the agent version restore issue, the direct version application change, and the expected behavior after the fix.
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title identifies a fix for the agent version apply issue, which matches the main change. The wording is awkward but remains clear enough.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Autofix · 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

A rabbit watches versions hop,
One chosen version takes its place.
No save comes first; the dialog shuts,
When applying finishes in its case.
The restore button waits its turn,
Then hops along with quiet grace.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant