Skip to content

fix(tools): use Schema.optionalKey and fix Cmd+C copy - #13

Merged
casparbreloh merged 1 commit into
mainfrom
fix/schema-and-copy
Apr 13, 2026
Merged

casparbreloh merged 1 commit into
mainfrom
fix/schema-and-copy

Conversation

@casparbreloh

Copy link
Copy Markdown
Owner
  • Replace Schema.optional with Schema.optionalKey in all tool definitions to avoid the Undefined AST node that OpenRouter and Anthropic structured output reject (Google was unaffected).
  • Fix Cmd+C copy in the chat view: with Kitty keyboard protocol enabled, macOS Cmd maps to key.super, not key.meta (which is Alt/Option).

- Schema.optional produces Union(T | Undefined) which OpenRouter and Anthropic structured output reject
- Schema.optionalKey marks the key as optional without adding Undefined to the AST
- Fix Cmd+C copy: with Kitty keyboard protocol, Cmd maps to key.super, not key.meta (which is Alt/Option)
@casparbreloh
casparbreloh merged commit bade22a into main Apr 13, 2026
1 check passed
@casparbreloh
casparbreloh deleted the fix/schema-and-copy branch April 13, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant