Commit graph

4950 commits

Author SHA1 Message Date
David Brailovsky
fae7176cb9 Release v0.80.8 2026-07-16 16:35:16 +02:00
Armin Ronacher
6442536b1e fix(coding-agent): bundle OAuth flows in Bun binaries 2026-07-16 15:36:16 +02:00
Armin Ronacher
eb793510ad docs: audit unreleased changelogs
Some checks are pending
CI / build-check-test (push) Waiting to run
2026-07-16 13:58:56 +02:00
Armin Ronacher
97f9978fa6 feat(coding-agent): add model catalog refresh flag 2026-07-16 12:46:49 +02:00
Armin Ronacher
2be9efa19c
feat(ai): publish generated model catalogs to R2 (#6720) 2026-07-16 11:43:47 +02:00
Milosz Jankiewicz
5220aba619
feat(ai): add xAI device OAuth and route grok-4.5 through Responses (#6651)
* feat(ai): add xAI device OAuth and route grok-4.5 through Responses

Add xAI device-code OAuth alongside XAI_API_KEY. Route only grok-4.5
through Responses with low/medium/high reasoning; other xAI models stay
on Completions.

* fix(ai): tolerate xAI device-code interval 0 and correct token poll error label

---------

Co-authored-by: Jaaneek <Jaaneek@users.noreply.github.com>
2026-07-16 09:58:24 +02:00
github-actions[bot]
36db3fa385 chore: approve contributor ananthakumaran 2026-07-16 07:46:35 +00:00
github-actions[bot]
5d9fedf73c chore: approve contributor DivineDominion 2026-07-16 07:38:00 +00:00
Xiangzhe
1c799cecd0
fix(tui): normalize tabs for terminal output (#6697) 2026-07-16 09:17:05 +02:00
David Brailovsky
c6d8371521
Merge pull request #6681 from earendil-works/fix/set-title-after-checking-packages-windows
windows: reset pi terminal title after checking npm packages
2026-07-15 20:10:37 +02:00
David Brailovsky
12545274ea windows: reset pi terminal title after checking npm packages
on windows the npm check changes the terminal title and it doesn't change back
this is a narrow fix for it
fixes #6629
2026-07-15 15:14:55 +00:00
Mario Zechner
5e336cfa80 Merge origin/main into model runtime changes
Some checks are pending
CI / build-check-test (push) Waiting to run
2026-07-15 13:00:45 +02:00
Mario Zechner
bd9e09db44 feat(coding-agent): expose dynamic provider refresh 2026-07-15 12:56:50 +02:00
Mario Zechner
45203abfa0 fix(coding-agent): Coalesce adjacent assistant thinking blocks into one section 2026-07-15 12:52:53 +02:00
Mario Zechner
fab309e955 fix(coding-agent): refresh model catalogs in picker 2026-07-15 12:35:29 +02:00
Mario Zechner
ff28097a36 feat(coding-agent): merge model runtime facade 2026-07-15 12:26:11 +02:00
Mario Zechner
cd7cad4ee2 feat(coding-agent): merge origin/main into model runtime facade 2026-07-15 12:25:36 +02:00
David Brailovsky
dcfe36c797
clamp session-id to 64 chars for openai-codex (#6653)
fixes #6630
2026-07-14 21:09:29 +02:00
Armin Ronacher
9d09075c53 Add [Unreleased] section for next cycle 2026-07-14 18:36:49 +02:00
Armin Ronacher
818d67457c Release v0.80.7 2026-07-14 18:36:46 +02:00
Armin Ronacher
53a087fe82 docs: audit unreleased changelogs 2026-07-14 18:18:05 +02:00
Mario Zechner
9993c96907 feat(coding-agent): replace model registry with model runtime
Move provider auth and OAuth flows onto pi-ai Models, compose models.json and extension overlays through ModelRuntime, and retain ModelRegistry as an extension compatibility facade.
2026-07-14 17:48:45 +02:00
David Brailovsky
f4e9ca7466 remove current date from system prompt
fixes #6621
2026-07-14 14:58:24 +00:00
David Brailovsky
1f9e846c84
don't send session-id header to opencode openai-responses models (#6645)
fixes #6625
2026-07-14 15:57:01 +02:00
Armin Ronacher
92ffae5228 fix(ai): type Anthropic probes by catalog providers
Some checks are pending
CI / build-check-test (push) Waiting to run
2026-07-14 12:29:38 +02:00
Armin Ronacher
adfac437bb fix(coding-agent): clarify login options 2026-07-14 12:24:50 +02:00
Armin Ronacher
961fa6c142 feat(ai): add Radius gateway support 2026-07-14 11:01:21 +02:00
David Brailovsky
0e6909f050
anthropic-messages: skip usage fields if empty (#6611)
fixes: #6567
2026-07-13 18:07:59 +02:00
David Brailovsky
1f0dbc008c
backfill encrypted_content from response.completed for missing reasoning blocks (#6608)
fixes #6409
2026-07-13 17:27:36 +02:00
David Brailovsky
b084d2fb39
add legacy-peer-deps flag on pi uninstall when using npm (#6604)
Some checks are pending
CI / build-check-test (push) Waiting to run
otherwise it would fail when there's conflicting peer dependencies in installed packages

fixes: #6486
2026-07-13 12:50:46 +02:00
David Brailovsky
f8f75544b6
pass bedrock unhandled stop reasons to error message (#6598)
fixes #6485
2026-07-13 11:39:28 +02:00
David Brailovsky
7303cbac5d
fix branch summary when using ambient auth (#6595)
allow null apiKey. uses the same auth flow like compaction

fixes #6324
2026-07-13 10:49:10 +02:00
Petr Houška
298665cfb9
fix(ai): support OpenRouter session affinity (#6496)
Fixes #6366
2026-07-13 09:57:53 +02:00
Petr Houška
f7b78e2a42
fix(ai): route GitHub Copilot MAI-Code models through /responses endpoint (#6544)
mai-code-1-flash-picker is not accessible via /chat/completions and
must use the Copilot /responses endpoint. Update generate-models.ts to
send mai-* models to the responses API and regenerate the affected
model entry.
2026-07-13 09:56:40 +02:00
Alexey Zaytsev
eacaa130ab
ai: OpenAI and Codex forced tool calls (#6588)
* feat(ai): support forced OpenAI Codex tool calls

* feat(ai): support OpenAI Responses tool choice
2026-07-13 09:48:33 +02:00
github-actions[bot]
16a3d420ff chore: approve contributor vibeinging 2026-07-13 07:46:38 +00:00
Rafał Krzyważnia
8479bd8474
fix(tui): parse legacy alt-prefixed symbols (#6523)
Some checks are pending
CI / build-check-test (push) Waiting to run
2026-07-11 15:20:08 +02:00
github-actions[bot]
5416b1834a chore: approve contributor petrroll 2026-07-11 12:41:54 +00:00
Mark Phelps
bdd5c53bcd
fix(ai): fall back to ambient Cloudflare account id for key-only credentials (#6292)
Cloudflare Workers AI / AI Gateway resolved provider config from the
credential only, never consulting ambient env for a field the credential
omitted. The coding-agent /login flow stores just the API key, so
CLOUDFLARE_ACCOUNT_ID lives only in the environment; the key-only credential
short-circuited the env lookup, the account id stayed unresolved, and requests
hit the literal {CLOUDFLARE_ACCOUNT_ID} base URL -> 404.

resolveValue now merges per field: prefer the credential value, fall back to
ctx.env(name).

closes #6021

Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
Co-authored-by: Mario Zechner <badlogicgames@gmail.com>
2026-07-11 14:30:40 +02:00
Armin Ronacher
850c210b77 fix(ai): filter ambient auth markers in compat dispatch
Some checks are pending
CI / build-check-test (push) Waiting to run
2026-07-11 13:38:48 +02:00
Rafał Krzyważnia
19fe0e01c5
fix(ai): preserve ambient AWS auth for Bedrock
Do not treat Pi’s internal ambient-auth marker as a Bedrock bearer token. This preserves SigV4 signing for AWS profiles, IAM credentials, and roles while retaining bearer authentication for real Bedrock API keys.\n\nFixes #6531
2026-07-11 13:12:23 +02:00
Armin Ronacher
4c1861033b docs: audit unreleased changelogs 2026-07-11 00:01:31 +02:00
Armin Ronacher
3d8f74357c
feat(ai): support message-anchored tool loading (#6474)
This adds cache-friendly dynamic tool loading anchored to tool results. Purely additive active-tool changes are recorded with `addedToolNames`, allowing supported Anthropic and OpenAI Responses models to load tool definitions at the point they become available instead of placing them in the cached prompt prefix.

It retains safe fallback behavior for unsupported models and non-additive changes but it will wipe caches.
2026-07-10 23:52:54 +02:00
Armin Ronacher
d7a48d30a0 fix(coding-agent): fall back to text clipboard paste 2026-07-10 21:46:15 +02:00
Armin Ronacher
3b686ac224 feat(coding-agent): add message copy shortcut 2026-07-10 21:35:53 +02:00
Armin Ronacher
3ea064ea2a fix: support Bedrock API key login 2026-07-10 19:34:11 +02:00
David Brailovsky
91585d9a38
bump bun to 1.3.14 (#6503)
this supports BUN_CONFIG_HTTP_IDLE_TIMEOUT
related to #6476
2026-07-10 16:34:43 +02:00
David Brailovsky
bc469b0338
add xhigh and max to all fable-5 providers (#6490)
Some checks are pending
CI / build-check-test (push) Waiting to run
related to #6374
2026-07-10 11:42:53 +02:00
github-actions[bot]
81de5702c6 chore: approve contributor farid-fari 2026-07-10 07:54:01 +00:00
David Brailovsky
46145bef07
fix openrouter models: use context length from top provider (#6481)
fixes #6378
2026-07-10 09:51:53 +02:00