Change how hard the model thinks, and say what it is set to There was no answer to "what reasoning level are we on". `--reasoning` existed but only reached the thread lane, where it is recorded at thread creation; the local lane had no level at all and nothing showed one. The status line names it — `thinking medium` — and shift+tab cycles it, in both spellings: the classic back-tab and the one the keyboard protocol reports, which this interface now turns on for shift+enter anyway. A source declares its own levels rather than sharing one ladder, because they do not have the same rungs. Ollama takes `think` as a boolean or one of low, medium, high — four rungs, confirmed against the running server and the client's own types — so the local lane offers `off low medium high`. `off` is the boolean because a model asked to think at no level still thinks; the way to stop it is to say not to. The flag's five names map onto those four: `minimal` is off, and `max` is high because there is nothing above it. Mapped by name rather than clamped silently, so a reader who asked for `max` and sees `high` can find out why. A source with one level and no other reports the level and offers no key, since a key that does nothing is worse than no key. Cycling is refused while a turn runs, for the reason switching a backend is: a turn already accepted keeps the shape it was accepted with. 409 tests pass, including that the level reaches the request on every round and that both spellings of shift+tab move it.
Change how hard the model thinks, and say what it is set to
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
Not deployed through the forge lane
No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.
Changed files
-
modified
packages/openagents-cli/src/cli.ts -
modified
packages/openagents-cli/src/coder-ollama.ts -
modified
packages/openagents-cli/src/coder-session.ts -
modified
packages/openagents-cli/src/coder-ui.ts -
modified
packages/openagents-cli/test/coder-ollama.test.ts -
modified
packages/openagents-cli/test/coder-ui.test.ts
Diff
6 files changed, +224 -1
packages/openagents-cli/src/cli.ts modified +4 -1
@@ -1763,7 +1763,10 @@ const coderCommand = Command.make(
| 1763 | 1763 |
|
| 1764 | 1764 |
|
| 1765 | 1765 |
|
| 1766 |
|
|
| 1766 |
|
|
| 1767 |
|
|
| 1768 |
|
|
| 1769 |
|
|
| 1767 | 1770 |
|
| 1768 | 1771 |
|
| 1769 | 1772 |
|
packages/openagents-cli/src/coder-ollama.ts modified +52
@@ -31,11 +31,48 @@ const DEFAULT_HOST = "http://127.0.0.1:11434";
| 31 | 31 |
|
| 32 | 32 |
|
| 33 | 33 |
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
| 60 |
|
|
| 61 |
|
|
| 62 |
|
|
| 63 |
|
|
| 64 |
|
|
| 65 |
|
|
| 66 |
|
|
| 67 |
|
|
| 68 |
|
|
| 34 | 69 |
|
| 35 | 70 |
|
| 36 | 71 |
|
| 37 | 72 |
|
| 38 | 73 |
|
| 74 |
|
|
| 75 |
|
|
| 39 | 76 |
|
| 40 | 77 |
|
| 41 | 78 |
|
@@ -195,6 +232,7 @@ export class OllamaReplySource implements ReplySource {
| 195 | 232 |
|
| 196 | 233 |
|
| 197 | 234 |
|
| 235 |
|
|
| 198 | 236 |
|
| 199 | 237 |
|
| 200 | 238 |
|
@@ -212,6 +250,8 @@ export class OllamaReplySource implements ReplySource {
| 212 | 250 |
|
| 213 | 251 |
|
| 214 | 252 |
|
| 253 |
|
|
| 254 |
|
|
| 215 | 255 |
|
| 216 | 256 |
|
| 217 | 257 |
|
@@ -265,6 +305,17 @@ export class OllamaReplySource implements ReplySource {
| 265 | 305 |
|
| 266 | 306 |
|
| 267 | 307 |
|
| 308 |
|
|
| 309 |
|
|
| 310 |
|
|
| 311 |
|
|
| 312 |
|
|
| 313 |
|
|
| 314 |
|
|
| 315 |
|
|
| 316 |
|
|
| 317 |
|
|
| 318 |
|
|
| 268 | 319 |
|
| 269 | 320 |
|
| 270 | 321 |
|
@@ -337,6 +388,7 @@ export class OllamaReplySource implements ReplySource {
| 337 | 388 |
|
| 338 | 389 |
|
| 339 | 390 |
|
| 391 |
|
|
| 340 | 392 |
|
| 341 | 393 |
|
| 342 | 394 |
|
packages/openagents-cli/src/coder-session.ts modified +38
@@ -127,6 +127,8 @@ export interface CoderSnapshot {
| 127 | 127 |
|
| 128 | 128 |
|
| 129 | 129 |
|
| 130 |
|
|
| 131 |
|
|
| 130 | 132 |
|
| 131 | 133 |
|
| 132 | 134 |
|
@@ -187,6 +189,16 @@ export interface ReplySource {
| 187 | 189 |
|
| 188 | 190 |
|
| 189 | 191 |
|
| 192 |
|
|
| 193 |
|
|
| 194 |
|
|
| 195 |
|
|
| 196 |
|
|
| 197 |
|
|
| 198 |
|
|
| 199 |
|
|
| 200 |
|
|
| 201 |
|
|
| 190 | 202 |
|
| 191 | 203 |
|
| 192 | 204 |
|
@@ -377,6 +389,7 @@ export class CoderSession {
| 377 | 389 |
|
| 378 | 390 |
|
| 379 | 391 |
|
| 392 |
|
|
| 380 | 393 |
|
| 381 | 394 |
|
| 382 | 395 |
|
@@ -428,6 +441,31 @@ export class CoderSession {
| 428 | 441 |
|
| 429 | 442 |
|
| 430 | 443 |
|
| 444 |
|
|
| 445 |
|
|
| 446 |
|
|
| 447 |
|
|
| 448 |
|
|
| 449 |
|
|
| 450 |
|
|
| 451 |
|
|
| 452 |
|
|
| 453 |
|
|
| 454 |
|
|
| 455 |
|
|
| 456 |
|
|
| 457 |
|
|
| 458 |
|
|
| 459 |
|
|
| 460 |
|
|
| 461 |
|
|
| 462 |
|
|
| 463 |
|
|
| 464 |
|
|
| 465 |
|
|
| 466 |
|
|
| 467 |
|
|
| 468 |
|
|
| 431 | 469 |
|
| 432 | 470 |
|
| 433 | 471 |
|
packages/openagents-cli/src/coder-ui.ts modified +13
@@ -574,6 +574,7 @@ export function runCoderUi(session: CoderSession, options: CoderUiOptions): Prom
| 574 | 574 |
|
| 575 | 575 |
|
| 576 | 576 |
|
| 577 |
|
|
| 577 | 578 |
|
| 578 | 579 |
|
| 579 | 580 |
|
@@ -630,6 +631,9 @@ export function runCoderUi(session: CoderSession, options: CoderUiOptions): Prom
| 630 | 631 |
|
| 631 | 632 |
|
| 632 | 633 |
|
| 634 |
|
|
| 635 |
|
|
| 636 |
|
|
| 633 | 637 |
|
| 634 | 638 |
|
| 635 | 639 |
|
@@ -877,6 +881,15 @@ export function runCoderUi(session: CoderSession, options: CoderUiOptions): Prom
| 877 | 881 |
|
| 878 | 882 |
|
| 879 | 883 |
|
| 884 |
|
|
| 885 |
|
|
| 886 |
|
|
| 887 |
|
|
| 888 |
|
|
| 889 |
|
|
| 890 |
|
|
| 891 |
|
|
| 892 |
|
|
| 880 | 893 |
|
| 881 | 894 |
|
| 882 | 895 |
|
packages/openagents-cli/test/coder-ollama.test.ts modified +53
@@ -389,3 +389,56 @@ describe("naming a model by the part a reader remembers", () => {
| 389 | 389 |
|
| 390 | 390 |
|
| 391 | 391 |
|
| 392 |
|
|
| 393 |
|
|
| 394 |
|
|
| 395 |
|
|
| 396 |
|
|
| 397 |
|
|
| 398 |
|
|
| 399 |
|
|
| 400 |
|
|
| 401 |
|
|
| 402 |
|
|
| 403 |
|
|
| 404 |
|
|
| 405 |
|
|
| 406 |
|
|
| 407 |
|
|
| 408 |
|
|
| 409 |
|
|
| 410 |
|
|
| 411 |
|
|
| 412 |
|
|
| 413 |
|
|
| 414 |
|
|
| 415 |
|
|
| 416 |
|
|
| 417 |
|
|
| 418 |
|
|
| 419 |
|
|
| 420 |
|
|
| 421 |
|
|
| 422 |
|
|
| 423 |
|
|
| 424 |
|
|
| 425 |
|
|
| 426 |
|
|
| 427 |
|
|
| 428 |
|
|
| 429 |
|
|
| 430 |
|
|
| 431 |
|
|
| 432 |
|
|
| 433 |
|
|
| 434 |
|
|
| 435 |
|
|
| 436 |
|
|
| 437 |
|
|
| 438 |
|
|
| 439 |
|
|
| 440 |
|
|
| 441 |
|
|
| 442 |
|
|
| 443 |
|
|
| 444 |
|
packages/openagents-cli/test/coder-ui.test.ts modified +64
@@ -775,3 +775,67 @@ describe("reasoning in the transcript", () => {
| 775 | 775 |
|
| 776 | 776 |
|
| 777 | 777 |
|
| 778 |
|
|
| 779 |
|
|
| 780 |
|
|
| 781 |
|
|
| 782 |
|
|
| 783 |
|
|
| 784 |
|
|
| 785 |
|
|
| 786 |
|
|
| 787 |
|
|
| 788 |
|
|
| 789 |
|
|
| 790 |
|
|
| 791 |
|
|
| 792 |
|
|
| 793 |
|
|
| 794 |
|
|
| 795 |
|
|
| 796 |
|
|
| 797 |
|
|
| 798 |
|
|
| 799 |
|
|
| 800 |
|
|
| 801 |
|
|
| 802 |
|
|
| 803 |
|
|
| 804 |
|
|
| 805 |
|
|
| 806 |
|
|
| 807 |
|
|
| 808 |
|
|
| 809 |
|
|
| 810 |
|
|
| 811 |
|
|
| 812 |
|
|
| 813 |
|
|
| 814 |
|
|
| 815 |
|
|
| 816 |
|
|
| 817 |
|
|
| 818 |
|
|
| 819 |
|
|
| 820 |
|
|
| 821 |
|
|
| 822 |
|
|
| 823 |
|
|
| 824 |
|
|
| 825 |
|
|
| 826 |
|
|
| 827 |
|
|
| 828 |
|
|
| 829 |
|
|
| 830 |
|
|
| 831 |
|
|
| 832 |
|
|
| 833 |
|
|
| 834 |
|
|
| 835 |
|
|
| 836 |
|
|
| 837 |
|
|
| 838 |
|
|
| 839 |
|
|
| 840 |
|
|
| 841 |
|