Skip to content

fix(zero): share Fly creds + OCI app with assistant runtime in zero:fly#2876

Open
danielkov wants to merge 1 commit into
mainfrom
daniel/age-2370-restore-dev-bootable-assistant-runtime-default
Open

fix(zero): share Fly creds + OCI app with assistant runtime in zero:fly#2876
danielkov wants to merge 1 commit into
mainfrom
daniel/age-2370-restore-dev-bootable-assistant-runtime-default

Conversation

@danielkov
Copy link
Copy Markdown
Contributor

@danielkov danielkov commented May 15, 2026

Summary

  • zero:fly already prompted for Fly credentials but never wrote the assistant-runtime equivalents, so mise start:server after a fresh ./zero failed FlyRuntimeConfig.Validate().
  • Reuse the functions Fly token, org, region, and OCI registry app for the assistant runtime — assistants push their image under a separate :dev tag, so a second Fly app isn't required for local dev.
  • Drops the dedicated "assistant runtime app" prompt; the script now writes GRAM_ASSISTANT_RUNTIME_FLYIO_{API_TOKEN,ORG,REGION} alongside the existing GRAM_ASSISTANT_RUNTIME_OCI_IMAGE + _IMAGE_VERSION.

Closes AGE-2370.

✻ Clauded...

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 15, 2026

AGE-2370

@vercel
Copy link
Copy Markdown

vercel Bot commented May 15, 2026

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

Project Deployment Actions Updated (UTC)
gram-docs-redirect Ready Ready Preview, Comment May 15, 2026 11:18pm

Request Review

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 15, 2026

⚠️ No Changeset found

Latest commit: 0b487b7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown

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

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: 41c6578649

ℹ️ 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 +31 to +32
func (n *noopRuntimeBackend) Ensure(_ context.Context, _ assistantRuntimeRecord) (RuntimeBackendEnsureResult, error) {
return RuntimeBackendEnsureResult{}, errNoopRuntimeNotConfigured
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 Avoid retrying noop assistant runtime forever

When local dev runs with the new noop provider and any assistant is invoked, ServiceCore.ProcessThreadEvents treats an Ensure error as a transient setup failure: it marks the runtime failed, returns RetryAdmission, and the thread workflow re-signals admission after the 30s backoff. Since noop.Ensure always returns this same error before any event is claimed, the event never reaches the terminal error path and stays pending in an endless retry cycle instead of surfacing the promised not-configured error. Either let noop Ensure succeed and fail at RunTurn, or classify this error as terminal before returning RetryAdmission.

Useful? React with 👍 / 👎.

@github-actions github-actions Bot added the preview Spawn a preview environment label May 15, 2026
@speakeasybot
Copy link
Copy Markdown
Collaborator

speakeasybot commented May 15, 2026

🚀 Preview Environment (PR #2876)

Preview URL: https://pr-2876.dev.getgram.ai

Component Status Details Updated (UTC)
✅ Database Ready Existing database reused 2026-05-15 23:22:42.
✅ Images Available Container images ready 2026-05-15 23:22:26.

Gram Preview Bot

zero:fly already collected Fly creds for Gram Functions but never wrote the
assistant-runtime equivalents, so a fresh checkout running ./zero failed
mise start:server's FlyRuntimeConfig.Validate() on missing
--assistant-runtime-flyio-{api-token,org} and --assistant-runtime-oci-image.
The functions runner Fly app already covers our dev needs — assistants push
under a separate :dev tag — so reuse the same token, org, region, and OCI
app for the assistant runtime and drop the dedicated assistant-app prompt.

Closes AGE-2370
@danielkov danielkov force-pushed the daniel/age-2370-restore-dev-bootable-assistant-runtime-default branch from 41c6578 to 0b487b7 Compare May 15, 2026 23:18
@danielkov danielkov changed the title fix(assistants): restore dev-bootable assistant runtime default fix(zero): share Fly creds + OCI app with assistant runtime in zero:fly May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Spawn a preview environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants