Skip to content

Remove agent creation success modal - #5063

Open
klopez4212 wants to merge 1 commit into
mainfrom
kennylopez-remove-agent-created-modal
Open

Remove agent creation success modal#5063
klopez4212 wants to merge 1 commit into
mainfrom
kennylopez-remove-agent-created-modal

Conversation

@klopez4212

Copy link
Copy Markdown
Contributor

Summary

  • remove the post-creation private-key modal
  • return directly to the underlying page with one “Agent created” toast
  • preserve failed channel-attachment retry through an actionable toast

Validation

  • desktop checks and E2E build
  • 4,392 desktop unit tests
  • focused Playwright coverage for standard, customized, and attachment-retry creation flows

Signed-off-by: kenny lopez <klopez4212@gmail.com>
@klopez4212
klopez4212 marked this pull request as ready for review August 6, 2026 15:42
@klopez4212
klopez4212 requested a review from a team as a code owner August 6, 2026 15:42

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 579710a947

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +60 to +61
if (created.spawnError || !targetChannel) {
toast.success("Agent created");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Surface spawn failures in contextual creation flows

When a creation launched through RequestedAgentCreateDialogs returns spawnError, this branch emits only the success toast; usePersonaActions.handleSubmit stores the failure in that hook instance's personaErrorMessage, but the contextual component never renders that state and closes the dialog after the handler returns. The user is therefore told only “Agent created” even though the agent did not start, whereas the removed modal previously displayed the spawn error; include the failure in the toast or keep a rendered error surface.

Useful? React with 👍 / 👎.

Comment on lines +27 to +30
const id = toast.warning("Agent created", {
description: `${created.agent.name} couldn’t be added to #${targetChannel.name}. ${error}`,
id: toastId,
action: {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep the attachment retry available after the toast expires

When the initial channel attachment fails, all retry state now exists only in this Sonner toast, which uses the default short lifetime because no duration is supplied. If the user does not click “Try again” before it disappears—for example while reading the relay error or while the app is backgrounded—the targeted retry is lost, unlike the previous modal that remained until dismissal; make the failure toast persistent or retain the retry elsewhere.

Useful? React with 👍 / 👎.

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