Repository navigation
Commit 8f4d994
committed
fix(server): Codex and Pi runs report the model the provider ran
The MCP executedModel reads the provider turn's model, which only the
Claude adapter set. Codex now writes the reported or rerouted model it
already put in turnTokenUsage.models onto the provider turn's model, and
Pi records the provider/model from its assistant message_end on the
terminal provider turn.
Fixes #34280
AI-assisted; verified with the tests and tools listed above.1 parent f5d700f commit 8f4d994
2 files changed
Lines changed: 11 additions & 4 deletions
File tree
- apps/server/src/orchestration-v2/Adapters
- packages/provider-pi/src/server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6393 | 6393 | | |
6394 | 6394 | | |
6395 | 6395 | | |
| 6396 | + | |
6396 | 6397 | | |
6397 | 6398 | | |
6398 | 6399 | | |
| |||
6415 | 6416 | | |
6416 | 6417 | | |
6417 | 6418 | | |
6418 | | - | |
6419 | | - | |
6420 | | - | |
6421 | | - | |
| 6419 | + | |
6422 | 6420 | | |
| 6421 | + | |
6423 | 6422 | | |
6424 | 6423 | | |
6425 | 6424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| 381 | + | |
| 382 | + | |
381 | 383 | | |
382 | 384 | | |
383 | 385 | | |
| |||
1753 | 1755 | | |
1754 | 1756 | | |
1755 | 1757 | | |
| 1758 | + | |
1756 | 1759 | | |
1757 | 1760 | | |
1758 | 1761 | | |
| |||
2001 | 2004 | | |
2002 | 2005 | | |
2003 | 2006 | | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
2004 | 2012 | | |
2005 | 2013 | | |
2006 | 2014 | | |
| |||
0 commit comments