-
Notifications
You must be signed in to change notification settings - Fork 3
assistant command crashes: missing field expires_at #35
Copy link
Copy link
Open
Description
The kagi assistant command fails on every call with:
parse error: failed to parse assistant thread frame: missing field `expires_at` at line 1 column XXXX
Kagi stopped sending expires_at in the thread.json stream frame. The AssistantThreadPayload struct in src/api.rs has it as a required String, so serde blows up.
Fix is three lines:
src/api.rs — change expires_at: String to #[serde(default)] expires_at: Option<String> and update the From impl to use payload.expires_at.unwrap_or_default()
src/types.rs — add #[serde(default)] above pub expires_at: String
I have a working fork with the fix applied here: https://github.com/sha-w/kagi-cli-fix-asst
Happy to open a PR if that helps.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels