Skip to content

fix(web): sync agent detail draft on profile refresh#248

Merged
RussellLuo merged 1 commit into
mainfrom
main__fix-agent-detail-save-state
Jun 26, 2026
Merged

fix(web): sync agent detail draft on profile refresh#248
RussellLuo merged 1 commit into
mainfrom
main__fix-agent-detail-save-state

Conversation

@youngbeom-shin

Copy link
Copy Markdown
Member

Summary

  • refresh the agent detail draft when the routed agent profile fields change for the same agent id
  • skip the automatic reload when the page already has unsaved edits
  • add a regression test covering delayed profile hydration for the selected agent detail page

Root Cause

The agent detail page only reloaded its draft when the routed agent id changed. When the same agent later received a fuller profile payload, the page could keep an older draft baseline and miss dirty-state transitions in the model section.

Validation

  • pnpm --dir web/app exec vitest run tests/hooks/useAgentController.test.tsx -t "reloads the selected agent draft"
  • pnpm --dir web/app exec vitest run tests/components/AgentActions.test.tsx

Impact

This fixes the intermittent case where editing model settings on the agent detail page would not surface an enabled Save changes button.

@youngbeom-shin youngbeom-shin marked this pull request as ready for review June 26, 2026 02:52
@youngbeom-shin youngbeom-shin requested review from jialudev and xxx7xxxx and removed request for xxx7xxxx June 26, 2026 03:07
@RussellLuo RussellLuo merged commit 3ef7258 into main Jun 26, 2026
1 check passed
@RussellLuo RussellLuo deleted the main__fix-agent-detail-save-state branch June 26, 2026 04:20
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