diff --git a/AGENTS.md b/AGENTS.md index 9523052c..f42581d0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -49,6 +49,7 @@ When closing issues via commit: - Technical prose only, be kind but direct (e.g., "Thanks @user" not "Thanks so much @user!") ## Changelog +Location: `packages/coding-agent/CHANGELOG.md` - New entries ALWAYS go under `## [Unreleased]` section - NEVER modify already-released version sections (e.g., `## [0.12.2]`) - Each version section is immutable once released diff --git a/packages/agent/src/transports/ProviderTransport.ts b/packages/agent/src/transports/ProviderTransport.ts index ebe4d090..024db0e4 100644 --- a/packages/agent/src/transports/ProviderTransport.ts +++ b/packages/agent/src/transports/ProviderTransport.ts @@ -58,7 +58,7 @@ export class ProviderTransport implements AgentTransport { model, reasoning: cfg.reasoning, // Resolve API key per assistant response (important for expiring OAuth tokens) - getApiKey: this.options.getApiKey ? (provider) => this.options.getApiKey?.(provider) : undefined, + getApiKey: this.options.getApiKey, getQueuedMessages: cfg.getQueuedMessages, }; } diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 0a1674be..67de83d6 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -17,6 +17,8 @@ - **Kitty keyboard protocol support**: Shift+Enter, Alt+Enter, Shift+Tab, Ctrl+D, and all Ctrl+key combinations now work in Ghostty, Kitty, WezTerm, and other modern terminals. ([#225](https://github.com/badlogic/pi-mono/pull/225) by [@kim0](https://github.com/kim0)) +- **Dynamic API key refresh**: OAuth tokens (GitHub Copilot, Anthropic OAuth) are now refreshed before each LLM call, preventing failures in long-running agent loops where tokens expire mid-session. ([#223](https://github.com/badlogic/pi-mono/pull/223) by [@kim0](https://github.com/kim0)) + - **`/hotkeys` command**: Shows all keyboard shortcuts in a formatted table. - **Markdown table borders**: Tables now render with proper top and bottom borders.