Skip to content

Bug: every demo deploy briefly crashes the chat composer capability actions — "no system config tree found" deploy-window race (0.4.13 [connectors], 0.4.17 [providers]) #3087

Closed as not planned

Description

@larryro

Every demo deploy with live traffic opens a short window in which the chat composer's capability actions hard-fail with an uncaught server error. It has now fired on two releases, in two different loaders of the same system-config tree:

Deploy GlitchTip Failure Timing
0.4.13 (Aug 24) TALE-PROJECT-11Q + log-stream twin 11P [connectors] no system config tree found … at listEnabledConnectors (composer.ts:287) ← chat/composer:listAutomationCapabilities error 12:38:26.885Z → release registered 12:38:27.574Z
0.4.17 (Aug 27) TALE-PROJECT-124 + log-stream twin 123 [providers] no system config tree found … at handler (composer.ts:214, the loadHarnesses() call) ← chat/composer:listComposerModels errors 02:36:19–23Z → release 0.4.17 registered 02:36:25.333Z

The 0.4.17 browser event carries release tag 0.4.15: a stale tab from the previous release reconnecting mid-deploy re-fires the composer actions and receives the uncaught error. listComposerModels populates the model picker, so an affected session sees a broken composer until it refetches.

Code path and env contract

Both loaders resolve the same shipped tree with the same three-step contract — explicit root → absolute $TALE_CONFIG_SYSTEM_DIR → walk up to a checkout's configs/platform/system:

Inside a container the walk-up can never succeed, so the contract is env-var-only, and the pieces are spread across three build/boot stages:

  • The convex image bakes the tree at /app/system: services/convex/Dockerfile:217-222 — its comment states the dependency exactly: "read by 'use node' actions at $TALE_CONFIG_SYSTEM_DIR (set on the platform image, synced into the deployment env). A container has no repo checkout, so unlike host dev it cannot fall back to walking up."
  • The platform image bakes TALE_CONFIG_SYSTEM_DIR=/app/system (services/platform/Dockerfile:180, 333, 391).
  • The platform entrypoint syncs container env → Convex deployment env at boot: services/platform/docker-entrypoint.sh ("Env vars are synced first so functions can read them at runtime"; convex env set loop ~line 378, convex deploy ~line 426).

Why the window still exists

The entrypoint already orders env sync before the function push, and the file is unchanged since Jul 29 (3d22502) — 0.4.13 and 0.4.17 both shipped that ordering, and both still crashed. So the gap is upstream of the within-boot ordering: between the (restarted) convex backend accepting reconnections and the platform entrypoint's env sync landing in the deployment env, 'use node' actions run without TALE_CONFIG_SYSTEM_DIR — the entrypoint spends that gap in its wait-for-HTTP / 10s search-index sleep / env-list steps before the first env set. Each occurrence self-heals seconds later once the sync lands, which matches the single-burst-per-deploy pattern on both releases.

Suggested fix (layered)

  1. Make the var deterministic where it's consumed: set ENV TALE_CONFIG_SYSTEM_DIR=/app/system in services/convex/Dockerfile itself, so node actions inherit it from the executor's container env with no cross-container boot choreography. The tree is already baked into that image; only the pointer is missing. (Verify the node executor propagates container env to action processes; the deployment-env sync later writes the identical value, so overlay order doesn't matter.)
  2. Degrade gracefully: composer capability actions (listComposerModels, listAutomationCapabilities → listEnabledConnectors, listProjectCapabilities) should treat an unresolvable system tree as "empty catalog + logged warning" rather than an uncaught action error — a mid-deploy stale tab should briefly see an empty picker, not an error boundary plus GlitchTip spam.
  3. Post-deploy smoke check: after convex deploy, invoke one composer capability action and fail the boot loudly if it errors.

Acceptance

  • A demo deploy with a live session produces zero no system config tree found events (watch GlitchTip 7967017 / 7967016 / 7938689 / 7938688 across the next releases).
  • convex env get TALE_CONFIG_SYSTEM_DIR against demo returns /app/system from the moment the backend accepts traffic.
  • With the tree deliberately unresolvable, composer capability actions return empty lists and log a warning instead of throwing.

Found by GlitchTip triage of demo.tale.dev. Board task TAL-5 ("0.4.13 demo deploy: composer capability actions crash…") predicted the listComposerModels exposure before 0.4.17 confirmed it; this issue supersedes its verification step.

Activity

  1. added
    priority: high
    bug
    service: platform
    automated
    on Aug 27, 2026
  2. yannickmonney commented on Sep 27, 2026

    @yannickmonney
    Contributor

    Closing as obsolete. The race was between a restarted convex-backend and the entrypoint syncing TALE_CONFIG_SYSTEM_DIR into the Convex deployment env. Since 0.5 the provider and connector loaders run in the platform process itself, and every platform image stage sets TALE_CONFIG_SYSTEM_DIR=/app/system as container ENV, so no cross-container sync is left to race.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    automatedbugpriority: highservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions