Skip to content

[fix] Enable agent rename on the onboarding playground [AGE-3954]#5340

Merged
mmabrouk merged 5 commits into
release/v0.105.6from
fix/agent-onboarding-rename
Jul 19, 2026
Merged

[fix] Enable agent rename on the onboarding playground [AGE-3954]#5340
mmabrouk merged 5 commits into
release/v0.105.6from
fix/agent-onboarding-rename

Conversation

@ashrafchowdury

Copy link
Copy Markdown
Contributor

Context

On a new workspace with no agents, the playground onboarding showed the agent name as a plain "Agent" label you could not rename. Double-clicking it only selected the text, so it looked editable but nothing happened. Renaming worked again after a reload, which is what made this read as a flaky regression.

The header resolved the agent only from currentWorkflowAtom, which reads the app id out of the URL. Onboarding runs on the project-level playground route (/w/../p/../playground) with no app_id segment, so that atom returns null. The header then fell back to a static, non-editable label showing a hardcoded "Agent" string (not even the real agent name). Opening a saved agent at /apps/<id>/playground puts the id back in the URL, which is why a reload appeared to fix it.

What to QA

  • On a workspace with no agents, open the playground onboarding with a saved agent selected. The header shows the real agent name, not a hardcoded "Agent", and a pencil appears on hover.
  • Rename it there with the pencil or a double-click, then press Enter. The new name sticks in the header.
  • Reload the page. The new name is still there, which confirms the rename reached the backend and did not just update local state.
  • Regression: open a saved agent at /apps/<id>/playground and rename it. Behaves exactly as before.
  • Regression: in the onboarding before you click "Create agent" (the local draft), the name is still a plain label with no pencil. That is expected, not a miss.

Preview

image

@linear-code

linear-code Bot commented Jul 16, 2026

Copy link
Copy Markdown

AGE-3954

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jul 16, 2026
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jul 19, 2026 2:34pm

Request Review

@dosubot dosubot Bot added the Bug Report Something isn't working label Jul 16, 2026
@ashrafchowdury ashrafchowdury linked an issue Jul 16, 2026 that may be closed by this pull request
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/agent-onboarding-rename

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.

@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6ec70c1e-b0e2-4a13-adcf-e0d3f8b42b48

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The playground header now supports inline agent renaming when the current workflow is unavailable by resolving a persisted root workflow and artifact name. The inline name affordance also adds pointer styling, a rename tooltip, and hover opacity behavior.

Changes

Agent naming flow

Layer / File(s) Summary
Root workflow rename resolution
web/oss/src/components/Playground/Components/PlaygroundHeader/index.tsx
The header derives the root workflow and artifact name, using a persisted non-local-draft workflow as a fallback rename target.
Inline name rendering and affordance
web/oss/src/components/Playground/Components/PlaygroundHeader/index.tsx, web/oss/src/components/EntityIdentity/AgentNameInline.tsx
The resolved name is rendered through inline editing when available, with updated pointer, tooltip, and hover opacity styling.

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

Possibly related PRs

  • Agenta-AI/agenta#5008: Updates the same playground header’s mode behavior and editable agent-name wiring.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Title check ✅ Passed The title clearly summarizes the main change: enabling agent renaming in the onboarding playground.
Description check ✅ Passed The description matches the change, describing the onboarding rename fix and the relevant regression cases.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/agent-onboarding-rename

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.

@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Railway Preview Environment

Status Destroyed (PR closed)

Updated at 2026-07-19T15:21:41.497Z

@ardaerzin
ardaerzin self-requested a review July 17, 2026 16:10
@mmabrouk
mmabrouk changed the base branch from main to release/v0.105.6 July 19, 2026 14:03
@mmabrouk
mmabrouk merged commit 1845736 into release/v0.105.6 Jul 19, 2026
89 of 91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Report Something isn't working size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Can't edit agent name

3 participants