Skip to content

[fix] Refresh workflow name after rename#5330

Open
ashrafchowdury wants to merge 1 commit into
mainfrom
fix/rename-data-invalidation-issue
Open

[fix] Refresh workflow name after rename#5330
ashrafchowdury wants to merge 1 commit into
mainfrom
fix/rename-data-invalidation-issue

Conversation

@ashrafchowdury

Copy link
Copy Markdown
Contributor

Context

Renaming an workflow from its overview page saved the new name, but the page title kept showing the old one until the cache refreshed or the page reloaded. The rename path invalidated app-list and artefact caches, while the overview reads a separate workflow-detail cache.

Changes

The shared workflow invalidator now also invalidates the exact overview-detail query for the current project and workflow.

Before, rename refreshed:

  • ["workflows", "apps"]
  • ["workflows", "artifact", workflowId]

After, it also refreshes:

  • ["workflows", "detail", projectId, workflowId]

The rename hook calls this shared invalidator after the metadata update.

Tests / notes

  • Ran focused Prettier and ESLint checks.
  • Ran pnpm --filter @agenta/entities types:check.
  • Ran git diff --check.

What to QA

  • Open an agent overview, rename the agent, and save. The overview title should show the new name immediately without a reload.
  • Navigate away and back to the overview. The new name should remain visible.

Preview

image

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

vercel Bot commented Jul 15, 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 15, 2026 1:19pm

Request Review

@dosubot dosubot Bot added the Frontend label Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Railway Preview Environment

Preview URL https://gateway-production-d680.up.railway.app/w
Project agenta-oss-pr-5330
Image tag pr-5330-25348f8
Status Deployed
Railway logs Open logs
Workflow logs View workflow run
Updated at 2026-07-15T13:29:54.508Z

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants