Skip to content

feat(THU-619): allow editing custom agents in settings#1009

Open
raivieiraadriano92 wants to merge 1 commit into
mainfrom
raivieiraadriano92/thu-619-allow-editing-agent-config-after-adding
Open

feat(THU-619): allow editing custom agents in settings#1009
raivieiraadriano92 wants to merge 1 commit into
mainfrom
raivieiraadriano92/thu-619-allow-editing-agent-config-after-adding

Conversation

@raivieiraadriano92

@raivieiraadriano92 raivieiraadriano92 commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Adds an Edit action to custom agents in settings so users can update an existing agent's config (name, system prompt, model, tools) without deleting and re-adding it.

  • AddCustomAgentDialog reused for both add and edit; opens prefilled when editing.
  • New row action wired through AgentList → settings page mutation.

Fixes THU-619.


Note

Low Risk
Scoped to settings UI and local updates on user-owned custom agents, reusing the same URL validation and connection-test gate as create.

Overview
Users can edit their own custom remote agents from Agents settings instead of deleting and re-adding them.

A pencil action appears on user-owned custom rows (same rules as delete). It opens the existing AddCustomAgentDialog in edit mode: copy switches to “Edit Custom Agent” / Save Changes, fields are prefilled from the agent, and Test Connection is still required before save. The settings page tracks editingAgent, remounts the dialog via key when switching agents, and handleSubmit calls updateAgent for edits vs createAgent for add.

Reducer RESET now restores create vs edit seed state via buildInitialState.

Reviewed by Cursor Bugbot for commit de6135f. Bugbot is set up for automated code reviews on this repo. Configure here.

@raivieiraadriano92 raivieiraadriano92 self-assigned this Jun 18, 2026
@github-actions

Copy link
Copy Markdown

Semgrep Security Scan

No security issues found.

@raivieiraadriano92 raivieiraadriano92 marked this pull request as ready for review June 18, 2026 21:59
@github-actions

Copy link
Copy Markdown

Preview environment deployed 🚀

Service URL
Marketing / blog / docs https://thunderbolt-pr-1009.preview.thunderbolt.io
App https://app-pr-1009.preview.thunderbolt.io
API https://api-pr-1009.preview.thunderbolt.io
Keycloak https://auth-pr-1009.preview.thunderbolt.io
PowerSync https://powersync-pr-1009.preview.thunderbolt.io

Stack: preview-pr-1009 · Commit: de6135f2ba5ee41df921dc4b7a487e25388685a6

Auto-destroys on PR close/merge. Login via the bundled Keycloak realm — demo@thunderbolt.io / demo by default.

@github-actions

Copy link
Copy Markdown

PR Metrics

Metric Value
Lines changed (prod code) +121 / -20
JS bundle size (gzipped) 🟢 682.3 KB → 682.1 KB (-206 B, -0.0%)
Test coverage 🟢 78.09% → 78.09% (+0.0%)
Performance (preview) Preview not ready — Render deploy may have timed out
Accessibility
Best Practices
SEO

Updated Thu, 18 Jun 2026 22:02:19 GMT · run #1961

@raivieiraadriano92 raivieiraadriano92 changed the title feat: allow editing custom agents in settings feat(THU-619): allow editing custom agents in settings Jun 19, 2026
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.

1 participant