Skip to content

fix(cli): cli changes for account-scoped teams#72

Draft
acslater00 wants to merge 3 commits intomasterfrom
acslater00/update-cli-schema-sync
Draft

fix(cli): cli changes for account-scoped teams#72
acslater00 wants to merge 3 commits intomasterfrom
acslater00/update-cli-schema-sync

Conversation

@acslater00
Copy link
Copy Markdown

Summary

  • refresh the embedded PowerSync schema and reflected SQLite surface to match the current control-plane contract
  • update conversation create/update paths to use the current GraphQL contract and account-owned conversation model
  • remove runtime dependence on workspace-shaped local conversation storage while keeping legacy compatibility where still needed
  • fix warm-start onboarding by restoring user bootstrap state so cached-auth sessions can complete runtime init
  • keep legacy policy-oriented status surfaces running against the new local schema by mapping deprecated summary fields to safe compatibility values
  • add regression coverage for reflected schema expectations, conversation GraphQL inputs, onboarding completion, chat/runtime behavior, and uploader paths

Testing

  • ./bin/sqlc generate
  • env GOCACHE=/Users/adamc/src/tero/cli/.gocache GOMODCACHE=/Users/adamc/src/tero/cli/.gomodcache ./bin/go test ./internal/boundary/graphql ./internal/sqlite -count=1
  • env GOCACHE=/Users/adamc/src/tero/cli/.gocache GOMODCACHE=/Users/adamc/src/tero/cli/.gomodcache ./bin/go build ./cmd/tero

Notes

  • genqlient regeneration is still blocked by an unrelated schema/query mismatch in the GraphQL generation path, so the generated conversation input surface was patched directly to remove stale fields
  • status bar summary reads still use legacy policy-shaped fields; this change keeps them non-breaking, but findings-native UI cleanup is still follow-up work
  • .gocache/ and .gomodcache/ were added to .gitignore to avoid local build cache noise

@acslater00 acslater00 changed the title fix(cli): sync current control-plane schema and warm-start onboarding fix(cli): cli changes for account-scoped teams Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant