Skip to content

feat(site): add home/refresh toolbar to all embedded task app iframes#26535

Closed
bpmct wants to merge 2 commits into
mainfrom
bpmct/task-app-toolbar-refresh
Closed

feat(site): add home/refresh toolbar to all embedded task app iframes#26535
bpmct wants to merge 2 commits into
mainfrom
bpmct/task-app-toolbar-refresh

Conversation

@bpmct

@bpmct bpmct commented Jun 18, 2026

Copy link
Copy Markdown
Member

Embedded app iframes in agent chats can get stuck in redirect loops or frozen states with no escape — but the Home/Open toolbar was only rendered when app.slug === "preview". Task templates frequently use other slugs (e.g. codercom-preview), so those apps had no toolbar at all.

Changes

  • Removed the app.slug === "preview" gate — toolbar now renders for all embedded apps
  • Added a Refresh button (RefreshCwIcon) between Home and the dropdown; reloads contentWindow.location without resetting to the original URL
  • Home still navigates to link.href (the original app URL, not the current iframe location) — intentional for escape-from-redirect-loop recovery

Before / After

Before — task app with slug codercom-preview: no toolbar, no way out

before

After — same app with app.slug === "preview" guard removed, toolbar visible with Home + Refresh

after


🤖 Generated with Coder Agents on behalf of @bpmct

@datadog-coder

datadog-coder Bot commented Jun 18, 2026

Copy link
Copy Markdown

Pipelines

⚠️ Warnings

🚦 1 Pipeline job failed

contrib | title   View in Datadog   GitHub Actions

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: ce6264a | Docs | Give us feedback!

@bpmct bpmct closed this Jun 18, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant