Skip to content

Kiro/Codex/OpenCode setup doesn't copy supabase/config.sh — telemetry sync silently no-ops #2215

Closed

Description

@jizusun

Bug

The setup script's Kiro install path (step 6) does not copy supabase/config.sh to ~/.kiro/skills/gstack/. This means gstack-telemetry-sync can never resolve GSTACK_SUPABASE_URL and exits silently at:

[ -z "$SUPABASE_URL" ] && exit 0

Users who opt into community or anonymous telemetry on Kiro (and likely Codex/OpenCode) get no error — telemetry just never uploads.

Root Cause

The Claude host path works because it symlinks the entire repo root, so $GSTACK_DIR/supabase/config.sh resolves naturally. The Kiro, Codex, and OpenCode paths only link selective assets (bin/, browse/dist/, ETHOS.md, etc.) and miss the supabase/ directory.

In gstack-telemetry-sync:31-34:

if [ -z "${GSTACK_SUPABASE_URL:-}" ] && [ -f "$GSTACK_DIR/supabase/config.sh" ]; then
  . "$GSTACK_DIR/supabase/config.sh"
fi
SUPABASE_URL="${GSTACK_SUPABASE_URL:-}"

Since $GSTACK_DIR resolves to ~/.kiro/skills/gstack (not the source repo), and supabase/config.sh was never copied there, SUPABASE_URL stays empty.

Affected Hosts

  • --host kiro (confirmed)
  • --host codex (likely — create_codex_runtime_root also uses selective linking)
  • --host opencode (likely — create_opencode_runtime_root same pattern)

Fix

Add to each host's setup block:

mkdir -p "$TARGET_GSTACK/supabase"
_link_or_copy "$SOURCE_GSTACK_DIR/supabase/config.sh" "$TARGET_GSTACK/supabase/config.sh"

Where $TARGET_GSTACK is $KIRO_GSTACK, $CODEX_GSTACK, or $OPENCODE_GSTACK respectively.

Environment

  • gstack installed via ./setup --host kiro
  • Linux (Ubuntu)
  • ~/.kiro/skills/gstack/supabase/ does not exist after setup
  • Telemetry set to community — local JSONL writes work, remote sync silently skips

Activity

  1. time-attack commented on Jul 15, 2026

    @time-attack
    Contributor

    @16francej — recommend closing this issue, but only after #2216 passes installed-runtime and telemetry-resolution coverage for Codex, Factory, OpenCode, and Kiro. Selective installs currently omit the public configuration file needed for endpoint resolution, and #2216 provides the direct fix. Keep all four host roots and the silent no-op failure in acceptance coverage.

  2. added a commit that references this issue on Aug 15, 2026
    008dd65
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions