Skip to content

fix(frontend): Update UI code snippets to v0.96.0 unified invoke API#4152

Merged
jp-agenta merged 5 commits intorelease/v0.96.5from
fix/update-ui-code-snippets-v96-invoke
Apr 16, 2026
Merged

fix(frontend): Update UI code snippets to v0.96.0 unified invoke API#4152
jp-agenta merged 5 commits intorelease/v0.96.5from
fix/update-ui-code-snippets-v96-invoke

Conversation

@mmabrouk
Copy link
Copy Markdown
Member

@mmabrouk mmabrouk commented Apr 15, 2026

Summary

  • Updates all UI code snippets (registry, deployments, endpoints) to use the v96.0 unified invoke API
  • Fetch config/variant snippets now use /preview/applications/revisions/retrieve instead of /variants/configs/fetch
  • Invoke snippets now use /v0/invoke with structured data/references/selector format instead of /run with flat params
  • Chat apps correctly include messages in data.inputs and show the Baggage header for session tracking

Files changed

  • Fetch config snippets (curl, typescript) — new endpoint + key field for environment resolution
  • Fetch variant snippets (curl, typescript) — new endpoint + application_variant_ref/application_revision_ref
  • Invoke snippets (curl, python, typescript) — updated chat detection for new nested format
  • createParams / createParamsFromSchema — build new data/references/selector structure
  • VariantUseApiContent — variant invoke params use new format
  • deploymentUrlAtomFamily — generates /v0/invoke instead of /run

Tested

  • Verified all 4 scenarios against eu.cloud.agenta.ai production:
    • Fetch config by environment (new endpoint) ✅
    • Fetch config by variant (new endpoint, version as string) ✅
    • Invoke completion by environment (/v0/invoke) ✅
    • Invoke chat by environment + variant (/v0/invoke) ✅
  • Lint passes clean

Test plan

  • Open registry drawer for a completion app → verify fetch + invoke snippets show new format
  • Open registry drawer for a chat app → verify messages in data.inputs and Baggage header
  • Open deployments dashboard → verify environment-based snippets use new format
  • Copy and run a generated snippet against a real app to confirm it works

Open with Devin

- Fetch config snippets: /variants/configs/fetch → /preview/applications/revisions/retrieve
- Fetch variant snippets: same endpoint with application_variant_ref/application_revision_ref
- Invoke params: flat format → structured data/references/selector format
- Deployment URL: /run → /v0/invoke
- Chat detection: updated to check data.inputs.messages in new format
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 15, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 15, 2026

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

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Apr 16, 2026 10:04am

Request Review

devin-ai-integration[bot]

This comment was marked as resolved.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2026

Railway Preview Environment

Status Destroyed (PR closed)

Updated at 2026-04-16T10:09:33.352Z

@mmabrouk mmabrouk requested review from jp-agenta April 15, 2026 15:39
@jp-agenta jp-agenta changed the title fix(frontend): Update UI code snippets to v96.0 unified invoke API fix(frontend): Update UI code snippets to v0.96.0 unified invoke API Apr 16, 2026
Copy link
Copy Markdown
Member

@jp-agenta jp-agenta left a comment

Choose a reason for hiding this comment

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

lgtm! Thanks @mmabrouk

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 16, 2026
@jp-agenta jp-agenta changed the base branch from main to release/v0.96.5 April 16, 2026 10:09
@jp-agenta jp-agenta merged commit 7f72d64 into release/v0.96.5 Apr 16, 2026
21 checks passed
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:L This PR changes 100-499 lines, ignoring generated files. typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants