You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran real endpoint checks with the configured KAGI_SESSION_TOKEN without printing credential values.
./target/debug/kagi auth check passed with session-token (env).
./target/debug/kagi search 'kagi cli live session test' --format json --limit 1 returned a live Kagi result.
./target/debug/kagi search 'kagi cli live session test' --format pretty --no-color --limit 1 returned a live pretty result.
./target/debug/kagi assistant --stream 'Reply with exactly LIVE-TEXT-OK and nothing else.' streamed LIVE-TEXT-OK.
./target/debug/kagi assistant --stream --stream-output json 'Reply with exactly LIVE-JSON-OK and nothing else.' emitted JSON stream events ending with markdown LIVE-JSON-OK.
SHELL=/usr/bin/fish XDG_CONFIG_HOME=<tmp> ./target/debug/kagi completion install wrote a real fish completion file in the temp config dir.
Live fallback test: with [auth] preferred_auth = "api", an intentionally invalid KAGI_API_KEY, and the real KAGI_SESSION_TOKEN, kagi search 'kagi cli failover live test' --format json --limit 1 succeeded with a live result.
Negative control: the same invalid KAGI_API_KEY with no session token failed against Kagi's real API with general.invalid_token, proving the successful fallback test was not an API success.
A real valid KAGI_API_KEY is not present in this shell or .kagi.toml; kagi auth status reports API key and legacy API token as not configured. The live API rejection/fallback path is verified, but a valid paid API-key success path could not be tested without that credential.
source ~/.bashrc; env -u KAGI_SESSION_TOKEN ./target/debug/kagi search 'kagi cli api only explicit source test' --format json --limit 1 returns a live V1 Search API result.
With [auth] preferred_auth = "api" and both credentials available, kagi search 'kagi cli api preferred with valid key test' --format json --limit 1 returns a live result through API-first routing.
This covers the valid paid API-key success path that was missing from the earlier live verification. The previous live fallback check still covers API rejection -> session fallback.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
kagi completion generateandkagi completion installfor bash, zsh, fish, and PowerShell.assistant --streamemit text deltas by default, with--stream-output jsonfor structured NDJSON events.Verification
cargo test./target/debug/kagi completion generate fishSHELL=/usr/bin/fish XDG_CONFIG_HOME=<tmp> ./target/debug/kagi completion install./target/debug/kagi assistant --help./target/debug/kagi completion --help./target/debug/kagi assistant --stream 'Reply with exactly OK and nothing else.'Refs #116