Skip to content

auth list crashes with 'No context found for instance' #190

@tencent-source

Description

@tencent-source

Summary

kilocode auth list crashes with No context found for instance.

Repro

kilocode auth list

Expected

List configured auth providers.

Actual

Command fails with:

Error: Unexpected error
No context found for instance

Stack trace

instance: No context found for instance
  at use (src/util/context.ts:16:21)
  at directory (src/project/instance.ts:46:20)
  at <anonymous> (src/project/instance.ts:67:31)
  at <anonymous> (src/project/state.ts:14:19)
  at get (src/config/config.ts:1400:12)
  at get (src/config/config.ts:1399:31)
  at get (src/provider/models.ts:125:35)
  at async handler (src/cli/cmd/auth.ts:181:38)

Environment

  • macOS (Apple Silicon)
  • npm global install: @kilocode/cli
  • reproduced on versions: 1.0.8 through 1.0.16
  • reproduced with a clean temporary HOME/XDG environment

Notes

  • This appears unrelated to local config because it reproduces on a fresh temp home.
  • Other commands like kilocode models work.

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