@code-yeongyu/senpi 2026.8.21 → 2026.8.22-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/dist/bun-runtime.d.ts +58 -0
  3. package/dist/bun-runtime.d.ts.map +1 -0
  4. package/dist/bun-runtime.js +163 -0
  5. package/dist/bun-runtime.js.map +1 -0
  6. package/dist/cli.js +45 -2
  7. package/dist/cli.js.map +1 -1
  8. package/dist/core/agent-session.d.ts +7 -2
  9. package/dist/core/agent-session.d.ts.map +1 -1
  10. package/dist/core/agent-session.js +81 -26
  11. package/dist/core/agent-session.js.map +1 -1
  12. package/dist/core/agent-settled-delivery.d.ts +13 -1
  13. package/dist/core/agent-settled-delivery.d.ts.map +1 -1
  14. package/dist/core/agent-settled-delivery.js +33 -2
  15. package/dist/core/agent-settled-delivery.js.map +1 -1
  16. package/dist/core/auth-storage.d.ts.map +1 -1
  17. package/dist/core/auth-storage.js +5 -4
  18. package/dist/core/auth-storage.js.map +1 -1
  19. package/dist/core/extensions/builtin/goal/cache-warm-renderer.d.ts.map +1 -1
  20. package/dist/core/extensions/builtin/goal/cache-warm-renderer.js +2 -3
  21. package/dist/core/extensions/builtin/goal/cache-warm-renderer.js.map +1 -1
  22. package/dist/core/extensions/builtin/goal/cache-warm.d.ts +6 -0
  23. package/dist/core/extensions/builtin/goal/cache-warm.d.ts.map +1 -1
  24. package/dist/core/extensions/builtin/goal/cache-warm.js +43 -0
  25. package/dist/core/extensions/builtin/goal/cache-warm.js.map +1 -1
  26. package/dist/core/extensions/builtin/permission-system/index.d.ts.map +1 -1
  27. package/dist/core/extensions/builtin/permission-system/index.js +7 -11
  28. package/dist/core/extensions/builtin/permission-system/index.js.map +1 -1
  29. package/dist/core/model-resolver.js +2 -2
  30. package/dist/core/model-resolver.js.map +1 -1
  31. package/dist/core/session-work-barrier.d.ts.map +1 -1
  32. package/dist/core/session-work-barrier.js +38 -1
  33. package/dist/core/session-work-barrier.js.map +1 -1
  34. package/dist/modes/interactive/components/status-indicator.d.ts +3 -0
  35. package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
  36. package/dist/modes/interactive/components/status-indicator.js +7 -1
  37. package/dist/modes/interactive/components/status-indicator.js.map +1 -1
  38. package/dist/modes/interactive/interactive-mode.d.ts +4 -1
  39. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  40. package/dist/modes/interactive/interactive-mode.js +118 -38
  41. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  42. package/dist/senpi +45 -2
  43. package/node_modules/@code-yeongyu/senpi-codemode/CHANGELOG.md +58 -0
  44. package/node_modules/@code-yeongyu/senpi-codemode/README.md +5 -0
  45. package/node_modules/@code-yeongyu/senpi-codemode/package.json +4 -4
  46. package/node_modules/@code-yeongyu/senpi-codemode/src/extension/runtime-factory.ts +4 -1
  47. package/node_modules/@code-yeongyu/senpi-codemode/src/extension/runtime-info.ts +41 -0
  48. package/node_modules/@code-yeongyu/senpi-codemode/src/extension/session-manager.ts +8 -3
  49. package/node_modules/@code-yeongyu/senpi-codemode/src/index.ts +4 -1
  50. package/node_modules/@code-yeongyu/senpi-codemode/src/interpreters/detect.ts +17 -4
  51. package/node_modules/@code-yeongyu/senpi-codemode/src/interpreters/resolve-command.ts +68 -0
  52. package/node_modules/@code-yeongyu/senpi-codemode/src/kernels/shared/subprocess-kernel.ts +15 -1
  53. package/node_modules/@code-yeongyu/senpi-codemode/src/timeouts/idle-timeout.ts +33 -4
  54. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/cell-runtime.ts +5 -1
  55. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/eval-tool-options.ts +3 -0
  56. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/eval-tool.ts +2 -0
  57. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/render.ts +60 -3
  58. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/runtime-label.ts +49 -0
  59. package/node_modules/@code-yeongyu/senpi-codemode/src/tool/types.ts +13 -0
  60. package/node_modules/@earendil-works/pi-agent-core/package.json +3 -3
  61. package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/stream-retry.d.ts +21 -0
  62. package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/stream-retry.d.ts.map +1 -0
  63. package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/stream-retry.js +36 -0
  64. package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/stream-retry.js.map +1 -0
  65. package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/types.d.ts +10 -0
  66. package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/types.d.ts.map +1 -1
  67. package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent/types.js.map +1 -1
  68. package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.d.ts +6 -0
  69. package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.d.ts.map +1 -1
  70. package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.js +166 -26
  71. package/node_modules/@earendil-works/pi-ai/dist/api/cursor-agent.js.map +1 -1
  72. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  73. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  74. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
  75. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  76. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
  77. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  78. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  79. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  80. package/node_modules/@earendil-works/pi-ai/package.json +2 -2
  81. package/node_modules/@earendil-works/pi-pty/package.json +1 -1
  82. package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  83. package/node_modules/@earendil-works/pi-tui/package.json +1 -1
  84. package/package.json +7 -7
  85. package/dist/modes/interactive/split-trailing-assistant-text.d.ts +0 -7
  86. package/dist/modes/interactive/split-trailing-assistant-text.d.ts.map +0 -1
  87. package/dist/modes/interactive/split-trailing-assistant-text.js +0 -19
  88. package/dist/modes/interactive/split-trailing-assistant-text.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"status-indicator.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/status-indicator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,MAAM,EAEN,aAAa,EAEb,eAAe,EACf,YAAY,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAIhD,MAAM,OAAO,eAAgB,SAAQ,MAAM;IAG1C,YACC,IAAyB,EACzB,EAAO,EACP,cAAuC,EACvC,cAAuC,EACvC,OAAe,EACf,SAAkC;QAElC,KAAK,CAAC,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QAC9D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;IAED,OAAO;QACN,IAAI,CAAC,IAAI,EAAE,CAAC;IACb,CAAC;IAED,eAAe,CAAC,aAAqB;QACpC,2CAA2C;IAC5C,CAAC;CACD;AAED,MAAM,OAAO,sBAAuB,SAAQ,eAAe;IAC1D,YAAY,EAAO,EAAE,OAAe,EAAE,SAAkC;QACvE,KAAK,CACJ,SAAS,EACT,EAAE,EACF,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,EACxC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,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AAE,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,EACxC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,EACjC,0BAA0B,OAAO,CAAC,eAAe,CAAC,aAAa,CAC/D,CAAC;IACH,CAAC;CACD;AAED,MAAM,OAAO,UAAU;IACtB,UAAU;QACT,iCAAiC;IAClC,CAAC;IAED,MAAM,CAAC,KAAa;QACnB,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACpC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC/B,CAAC;CACD","sourcesContent":["import {\n\ttype Component,\n\tLoader,\n\ttype LoaderIndicatorOptions,\n\tsliceByColumn,\n\ttype TUI,\n\ttruncateToWidth,\n\tvisibleWidth,\n} from \"@earendil-works/pi-tui\";\nimport { theme } from \"../theme/theme.ts\";\nimport { CountdownTimer } from \"./countdown-timer.ts\";\nimport { keyText } from \"./keybinding-hints.ts\";\n\nexport type StatusIndicatorKind = \"working\" | \"retry\" | \"compaction\" | \"branchSummary\";\n\nexport class StatusIndicator extends Loader {\n\treadonly kind: StatusIndicatorKind;\n\n\tconstructor(\n\t\tkind: StatusIndicatorKind,\n\t\tui: TUI,\n\t\tspinnerColorFn: (str: string) => string,\n\t\tmessageColorFn: (str: string) => string,\n\t\tmessage: string,\n\t\tindicator?: LoaderIndicatorOptions,\n\t) {\n\t\tsuper(ui, spinnerColorFn, messageColorFn, message, indicator);\n\t\tthis.kind = kind;\n\t}\n\n\tdispose(): void {\n\t\tthis.stop();\n\t}\n\n\tsetProgressText(_progressText: string): void {\n\t\t// Only compaction status renders progress.\n\t}\n}\n\nexport class WorkingStatusIndicator extends StatusIndicator {\n\tconstructor(ui: TUI, message: string, indicator?: LoaderIndicatorOptions) {\n\t\tsuper(\n\t\t\t\"working\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"accent\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\tmessage,\n\t\t\tindicator,\n\t\t);\n\t}\n}\n\nexport class RetryStatusIndicator extends StatusIndicator {\n\tprivate countdown: CountdownTimer | undefined;\n\n\tconstructor(ui: TUI, attempt: number, maxAttempts: number, delayMs: number, indicator?: LoaderIndicatorOptions) {\n\t\tconst retryMessage = (seconds: number) =>\n\t\t\t`Retrying (${attempt}/${maxAttempts}) in ${seconds}s... (${keyText(\"app.interrupt\")} to cancel)`;\n\t\tconst retryIndicator =\n\t\t\tindicator === undefined\n\t\t\t\t? undefined\n\t\t\t\t: {\n\t\t\t\t\t\t...indicator,\n\t\t\t\t\t\tindicatorFormatter: indicator.indicatorFormatter ?? ((spinner) => theme.fg(\"warning\", spinner)),\n\t\t\t\t\t};\n\t\tsuper(\n\t\t\t\"retry\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"warning\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\tretryMessage(Math.ceil(delayMs / 1000)),\n\t\t\tretryIndicator,\n\t\t);\n\t\tthis.countdown = new CountdownTimer(\n\t\t\tdelayMs,\n\t\t\tui,\n\t\t\t(seconds) => {\n\t\t\t\tthis.setMessage(retryMessage(seconds));\n\t\t\t},\n\t\t\t() => {\n\t\t\t\tthis.countdown = undefined;\n\t\t\t},\n\t\t);\n\t}\n\n\toverride dispose(): void {\n\t\tthis.countdown?.dispose();\n\t\tthis.countdown = undefined;\n\t\tsuper.dispose();\n\t}\n}\n\nexport type CompactionStatusReason = \"manual\" | \"threshold\" | \"overflow\" | \"pre_prompt\" | \"branch\" | \"extension\";\n\nexport class CompactionStatusIndicator extends StatusIndicator {\n\tprivate progressText = \"\";\n\tprivate readonly progressLabel: string;\n\n\tconstructor(ui: TUI, reason: CompactionStatusReason) {\n\t\tconst cancelHint = `(${keyText(\"app.interrupt\")} to cancel)`;\n\t\tconst label =\n\t\t\treason === \"manual\"\n\t\t\t\t? `Compacting context... ${cancelHint}`\n\t\t\t\t: reason === \"overflow\"\n\t\t\t\t\t? `Context overflow detected, compacting... ${cancelHint}`\n\t\t\t\t\t: reason === \"pre_prompt\"\n\t\t\t\t\t\t? `Compacting before next prompt... ${cancelHint}`\n\t\t\t\t\t\t: reason === \"threshold\"\n\t\t\t\t\t\t\t? `Auto-compacting... ${cancelHint}`\n\t\t\t\t\t\t\t: `Compacting context... ${cancelHint}`;\n\t\tsuper(\n\t\t\t\"compaction\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"accent\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\tlabel,\n\t\t);\n\t\t// Once a streamed preview needs room, the reason-specific label collapses to the\n\t\t// shortest form that still keeps the cancellation hint fully visible.\n\t\tthis.progressLabel = `Compacting... ${cancelHint}`;\n\t}\n\n\tsetProgressText(progressText: string): void {\n\t\tif (!this.progressText && progressText) this.setMessage(this.progressLabel);\n\t\tthis.progressText = progressText;\n\t}\n\n\toverride render(width: number): string[] {\n\t\t// Loader.render() prepends a spacer row; joining keeps this indicator a single row\n\t\t// whether or not a preview is present, so the composer never shifts between states.\n\t\t// Text pads rows to the full width, so trailing padding is stripped before measuring.\n\t\tlet status = super.render(width).join(\" \").trimEnd();\n\t\t// On narrow terminals the reason-specific label can wrap even before any preview\n\t\t// arrives, and head-truncating the joined rows would drop the cancellation hint.\n\t\t// Collapse to the compact label whenever the full status cannot fit on one row.\n\t\tif (visibleWidth(status) > width) {\n\t\t\tthis.setMessage(this.progressLabel);\n\t\t\tstatus = super.render(width).join(\" \").trimEnd();\n\t\t}\n\t\tif (!this.progressText) return [truncateToWidth(status, width)];\n\t\t// The status label (with its cancellation hint) is allocated first; the preview only\n\t\t// receives whatever width is left over instead of starving the hint out of the row.\n\t\tconst progressWidth = Math.min(visibleWidth(this.progressText), width - visibleWidth(status) - 1);\n\t\tif (progressWidth <= 0) return [truncateToWidth(status, width)];\n\t\t// The preview is accumulated summary text, so keep the newest trailing columns.\n\t\tconst totalProgressWidth = visibleWidth(this.progressText);\n\t\tconst progressTail =\n\t\t\ttotalProgressWidth > progressWidth\n\t\t\t\t? sliceByColumn(this.progressText, totalProgressWidth - progressWidth, progressWidth)\n\t\t\t\t: this.progressText;\n\t\treturn [truncateToWidth(`${status} ${theme.fg(\"muted\", progressTail)}`, width)];\n\t}\n}\n\nexport class BranchSummaryStatusIndicator extends StatusIndicator {\n\tconstructor(ui: TUI) {\n\t\tsuper(\n\t\t\t\"branchSummary\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"accent\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\t`Summarizing branch... (${keyText(\"app.interrupt\")} to cancel)`,\n\t\t);\n\t}\n}\n\nexport class IdleStatus implements Component {\n\tinvalidate(): void {\n\t\t// No cached state to invalidate.\n\t}\n\n\trender(width: number): string[] {\n\t\tconst emptyLine = \" \".repeat(width);\n\t\treturn [emptyLine, emptyLine];\n\t}\n}\n"]}
1
+ {"version":3,"file":"status-indicator.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/status-indicator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,MAAM,EAEN,aAAa,EAEb,eAAe,EACf,YAAY,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAIhD,MAAM,OAAO,eAAgB,SAAQ,MAAM;IAG1C,YACC,IAAyB,EACzB,EAAO,EACP,cAAuC,EACvC,cAAuC,EACvC,OAAe,EACf,SAAkC;QAElC,KAAK,CAAC,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QAC9D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;IAED,OAAO;QACN,IAAI,CAAC,IAAI,EAAE,CAAC;I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AG,aAAa,EAAE,aAAa,CAAC;YACrF,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;QACtB,OAAO,CAAC,eAAe,CAAC,GAAG,MAAM,IAAI,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC;IACjF,CAAC;CACD;AAED,MAAM,OAAO,4BAA6B,SAAQ,eAAe;IAChE,YAAY,EAAO;QAClB,KAAK,CACJ,eAAe,EACf,EAAE,EACF,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,EACxC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,EACjC,0BAA0B,OAAO,CAAC,eAAe,CAAC,aAAa,CAC/D,CAAC;IACH,CAAC;CACD;AAED,MAAM,OAAO,UAAU;IAGtB,YAAY,MAAM,GAAG,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,SAAS,CAAC,MAAc;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,UAAU;QACT,iCAAiC;IAClC,CAAC;IAED,MAAM,CAAC,KAAa;QACnB,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACpC,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC;CACD","sourcesContent":["import {\n\ttype Component,\n\tLoader,\n\ttype LoaderIndicatorOptions,\n\tsliceByColumn,\n\ttype TUI,\n\ttruncateToWidth,\n\tvisibleWidth,\n} from \"@earendil-works/pi-tui\";\nimport { theme } from \"../theme/theme.ts\";\nimport { CountdownTimer } from \"./countdown-timer.ts\";\nimport { keyText } from \"./keybinding-hints.ts\";\n\nexport type StatusIndicatorKind = \"working\" | \"retry\" | \"compaction\" | \"branchSummary\";\n\nexport class StatusIndicator extends Loader {\n\treadonly kind: StatusIndicatorKind;\n\n\tconstructor(\n\t\tkind: StatusIndicatorKind,\n\t\tui: TUI,\n\t\tspinnerColorFn: (str: string) => string,\n\t\tmessageColorFn: (str: string) => string,\n\t\tmessage: string,\n\t\tindicator?: LoaderIndicatorOptions,\n\t) {\n\t\tsuper(ui, spinnerColorFn, messageColorFn, message, indicator);\n\t\tthis.kind = kind;\n\t}\n\n\tdispose(): void {\n\t\tthis.stop();\n\t}\n\n\tsetProgressText(_progressText: string): void {\n\t\t// Only compaction status renders progress.\n\t}\n}\n\nexport class WorkingStatusIndicator extends StatusIndicator {\n\tconstructor(ui: TUI, message: string, indicator?: LoaderIndicatorOptions) {\n\t\tsuper(\n\t\t\t\"working\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"accent\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\tmessage,\n\t\t\tindicator,\n\t\t);\n\t}\n}\n\nexport class RetryStatusIndicator extends StatusIndicator {\n\tprivate countdown: CountdownTimer | undefined;\n\n\tconstructor(ui: TUI, attempt: number, maxAttempts: number, delayMs: number, indicator?: LoaderIndicatorOptions) {\n\t\tconst retryMessage = (seconds: number) =>\n\t\t\t`Retrying (${attempt}/${maxAttempts}) in ${seconds}s... (${keyText(\"app.interrupt\")} to cancel)`;\n\t\tconst retryIndicator =\n\t\t\tindicator === undefined\n\t\t\t\t? undefined\n\t\t\t\t: {\n\t\t\t\t\t\t...indicator,\n\t\t\t\t\t\tindicatorFormatter: indicator.indicatorFormatter ?? ((spinner) => theme.fg(\"warning\", spinner)),\n\t\t\t\t\t};\n\t\tsuper(\n\t\t\t\"retry\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"warning\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\tretryMessage(Math.ceil(delayMs / 1000)),\n\t\t\tretryIndicator,\n\t\t);\n\t\tthis.countdown = new CountdownTimer(\n\t\t\tdelayMs,\n\t\t\tui,\n\t\t\t(seconds) => {\n\t\t\t\tthis.setMessage(retryMessage(seconds));\n\t\t\t},\n\t\t\t() => {\n\t\t\t\tthis.countdown = undefined;\n\t\t\t},\n\t\t);\n\t}\n\n\toverride dispose(): void {\n\t\tthis.countdown?.dispose();\n\t\tthis.countdown = undefined;\n\t\tsuper.dispose();\n\t}\n}\n\nexport type CompactionStatusReason = \"manual\" | \"threshold\" | \"overflow\" | \"pre_prompt\" | \"branch\" | \"extension\";\n\nexport class CompactionStatusIndicator extends StatusIndicator {\n\tprivate progressText = \"\";\n\tprivate readonly progressLabel: string;\n\n\tconstructor(ui: TUI, reason: CompactionStatusReason) {\n\t\tconst cancelHint = `(${keyText(\"app.interrupt\")} to cancel)`;\n\t\tconst label =\n\t\t\treason === \"manual\"\n\t\t\t\t? `Compacting context... ${cancelHint}`\n\t\t\t\t: reason === \"overflow\"\n\t\t\t\t\t? `Context overflow detected, compacting... ${cancelHint}`\n\t\t\t\t\t: reason === \"pre_prompt\"\n\t\t\t\t\t\t? `Compacting before next prompt... ${cancelHint}`\n\t\t\t\t\t\t: reason === \"threshold\"\n\t\t\t\t\t\t\t? `Auto-compacting... ${cancelHint}`\n\t\t\t\t\t\t\t: `Compacting context... ${cancelHint}`;\n\t\tsuper(\n\t\t\t\"compaction\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"accent\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\tlabel,\n\t\t);\n\t\t// Once a streamed preview needs room, the reason-specific label collapses to the\n\t\t// shortest form that still keeps the cancellation hint fully visible.\n\t\tthis.progressLabel = `Compacting... ${cancelHint}`;\n\t}\n\n\tsetProgressText(progressText: string): void {\n\t\tif (!this.progressText && progressText) this.setMessage(this.progressLabel);\n\t\tthis.progressText = progressText;\n\t}\n\n\toverride render(width: number): string[] {\n\t\t// Loader.render() prepends a spacer row; joining keeps this indicator a single row\n\t\t// whether or not a preview is present, so the composer never shifts between states.\n\t\t// Text pads rows to the full width, so trailing padding is stripped before measuring.\n\t\tlet status = super.render(width).join(\" \").trimEnd();\n\t\t// On narrow terminals the reason-specific label can wrap even before any preview\n\t\t// arrives, and head-truncating the joined rows would drop the cancellation hint.\n\t\t// Collapse to the compact label whenever the full status cannot fit on one row.\n\t\tif (visibleWidth(status) > width) {\n\t\t\tthis.setMessage(this.progressLabel);\n\t\t\tstatus = super.render(width).join(\" \").trimEnd();\n\t\t}\n\t\tif (!this.progressText) return [truncateToWidth(status, width)];\n\t\t// The status label (with its cancellation hint) is allocated first; the preview only\n\t\t// receives whatever width is left over instead of starving the hint out of the row.\n\t\tconst progressWidth = Math.min(visibleWidth(this.progressText), width - visibleWidth(status) - 1);\n\t\tif (progressWidth <= 0) return [truncateToWidth(status, width)];\n\t\t// The preview is accumulated summary text, so keep the newest trailing columns.\n\t\tconst totalProgressWidth = visibleWidth(this.progressText);\n\t\tconst progressTail =\n\t\t\ttotalProgressWidth > progressWidth\n\t\t\t\t? sliceByColumn(this.progressText, totalProgressWidth - progressWidth, progressWidth)\n\t\t\t\t: this.progressText;\n\t\treturn [truncateToWidth(`${status} ${theme.fg(\"muted\", progressTail)}`, width)];\n\t}\n}\n\nexport class BranchSummaryStatusIndicator extends StatusIndicator {\n\tconstructor(ui: TUI) {\n\t\tsuper(\n\t\t\t\"branchSummary\",\n\t\t\tui,\n\t\t\t(spinner) => theme.fg(\"accent\", spinner),\n\t\t\t(text) => theme.fg(\"muted\", text),\n\t\t\t`Summarizing branch... (${keyText(\"app.interrupt\")} to cancel)`,\n\t\t);\n\t}\n}\n\nexport class IdleStatus implements Component {\n\tprivate height: number;\n\n\tconstructor(height = 2) {\n\t\tthis.height = height;\n\t}\n\n\tsetHeight(height: number): void {\n\t\tthis.height = height;\n\t}\n\n\tinvalidate(): void {\n\t\t// No cached state to invalidate.\n\t}\n\n\trender(width: number): string[] {\n\t\tconst emptyLine = \" \".repeat(width);\n\t\treturn Array.from({ length: this.height }, () => emptyLine);\n\t}\n}\n"]}
@@ -120,6 +120,7 @@ export declare class InteractiveMode {
120
120
  private isInitialized;
121
121
  private onInputCallback?;
122
122
  private pendingUserInputs;
123
+ private agentIdle;
123
124
  private readonly optimisticUserEchoes;
124
125
  /**
125
126
  * Clipboard images pasted into the composer, keyed by their visible
@@ -164,7 +165,7 @@ export declare class InteractiveMode {
164
165
  private lastStatusText;
165
166
  private managedToolStatusStarted;
166
167
  private streamingComponent;
167
- private trailingAssistantComponent;
168
+ private readonly assistantTextSegments;
168
169
  private streamingMessage;
169
170
  private readonly streamingReveal;
170
171
  private readonly toolArgsReveal;
@@ -451,6 +452,7 @@ export declare class InteractiveMode {
451
452
  private renderPendingUserEcho;
452
453
  private addMessageToChat;
453
454
  private syncTrailingAssistantText;
455
+ private detachAssistantTextSegments;
454
456
  private createToolExecutionComponent;
455
457
  private renderSessionItems;
456
458
  /**
@@ -477,6 +479,7 @@ export declare class InteractiveMode {
477
479
  renderInitialMessages(): void;
478
480
  private renderProjectTrustWarningIfNeeded;
479
481
  getUserInput(): Promise<InteractiveUserInput>;
482
+ private buildMainLoopPromptOptions;
480
483
  private rebuildChatFromMessages;
481
484
  private handleCtrlC;
482
485
  private handleCtrlD;
@@ -1 +1 @@
1
- {"version":3,"file":"interactive-mode.d.ts","sourceRoot":"","sources":["../../../src/modes/interactive/interactive-mode.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEjF,OAAO,KAAK,EAAoB,YAAY,EAAW,KAAK,EAAsB,MAAM,8BAA8B,CAAC;AACvH,OAAO,KAAK,EAUX,QAAQ,EAER,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAiBN,KAAK,GAAG,EACR,YAAY,EACZ,aAAa,EAEb,MAAM,wBAAwB,CAAC;AAiBhC,OAAO,EAAqB,KAAK,iBAAiB,EAAmB,MAAM,6BAA6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C,wBAAwB;YAalB,kBAAkB;YAuBlB,kBAAkB;IAUhC,OAAO,CAAC,yBAAyB;IA0DjC,OAAO,CAAC,yBAAyB;YA2CnB,iBAAiB;YA4DjB,8BAA8B;IAqF5C,OAAO,CAAC,qBAAqB;YA2Bf,qBAAqB;IAiDnC,OAAO,CAAC,cAAc;YAiCR,cAAc;IAwB5B,OAAO,CAAC,gBAAgB;YAaV,aAAa;YAYb,eAAe;YAoCf,mBAAmB;YAkHnB,mBAAmB;IAkBjC,OAAO,CAAC,sBAAsB;YA6BhB,mBAAmB;YA4CnB,kBAAkB;YAoGlB,iBAAiB;IAmB/B,OAAO,CAAC,iBAAiB;IAwBzB,OAAO,CAAC,oBAAoB;IA+D5B,OAAO,CAAC,sBAAsB;IAqB9B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAIxB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,oBAAoB;YAqHd,kBAAkB;IAehC,OAAO,CAAC,kBAAkB;IA6B1B,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,oBAAoB;IAM5B,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,qBAAqB;YAMf,iBAAiB;YAuFjB,oBAAoB;IAkBlC,IAAI,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,IAAI;CAgCvD"}
@@ -91,7 +91,6 @@ import { applyKeybindingsFileEdit, seedKeybindingsFile } from "./keybindings-com
91
91
  import { refreshModelCatalogs } from "./model-catalog-refresh.js";
92
92
  import { getModelSearchText } from "./model-search.js";
93
93
  import { isRiskyMainModel, RISKY_MAIN_MODEL_WARNING } from "./risky-main-model-warning.js";
94
- import { splitTrailingAssistantContent } from "./split-trailing-assistant-text.js";
95
94
  import { DEFAULT_SMOOTH_FPS, StreamingRevealController } from "./streaming-reveal.js";
96
95
  import { getAvailableThemes, getAvailableThemesWithPaths, getEditorTheme, getMarkdownTheme, getThemeByName, onThemeChange, setRegisteredThemes, stopThemeWatcher, Theme, theme, } from "./theme/theme.js";
97
96
  import { InteractiveThemeController } from "./theme/theme-controller.js";
@@ -286,6 +285,17 @@ function formatLoginProviderCompletionDescription(provider) {
286
285
  const authTypes = provider.authTypes.map(formatAuthSelectorProviderType).join("/");
287
286
  return provider.name === provider.id ? authTypes : `${provider.name} · ${authTypes}`;
288
287
  }
288
+ /**
289
+ * Content the streaming component owns: everything through the FIRST toolCall.
290
+ * Text painted between tool cards lives in persistent per-segment components
291
+ * below the cards (regression 1064), so the head must never reabsorb it.
292
+ */
293
+ function assistantStreamingHeadMessage(message) {
294
+ const firstToolIndex = message.content.findIndex((block) => block.type === "toolCall");
295
+ if (firstToolIndex === -1)
296
+ return message;
297
+ return { ...message, content: message.content.slice(0, firstToolIndex + 1) };
298
+ }
289
299
  /** Coordinates render-only user echoes with AgentSession's canonical input lifecycle. */
290
300
  export class OptimisticUserEchoController {
291
301
  constructor(render) {
@@ -308,10 +318,14 @@ export class OptimisticUserEchoController {
308
318
  const record = this.pending.find((candidate) => candidate.id === id);
309
319
  if (!record)
310
320
  return;
311
- if (disposition === "handled")
312
- this.reject(id);
313
- else
321
+ // Only a prompt that actually STARTED keeps its optimistic echo; queued
322
+ // (steer/follow-up) input must render as the pending-queue waiting state,
323
+ // matching upstream pi where user messages appear only at canonical
324
+ // message_start and queued text lives in the pending display.
325
+ if (disposition === "started")
314
326
  record.eligibleForCanonicalStart = true;
327
+ else
328
+ this.reject(id);
315
329
  },
316
330
  };
317
331
  }
@@ -483,6 +497,7 @@ export class InteractiveMode {
483
497
  this.autocompleteProviderWrappers = [];
484
498
  this.isInitialized = false;
485
499
  this.pendingUserInputs = [];
500
+ this.agentIdle = false;
486
501
  /**
487
502
  * Clipboard images pasted into the composer, keyed by their visible
488
503
  * `[Image #N]` marker number. The editor stores marker ids only, so these
@@ -518,7 +533,7 @@ export class InteractiveMode {
518
533
  this.managedToolStatusStarted = false;
519
534
  // Streaming message tracking
520
535
  this.streamingComponent = undefined;
521
- this.trailingAssistantComponent = undefined;
536
+ this.assistantTextSegments = new Map();
522
537
  this.streamingMessage = undefined;
523
538
  // Tool execution tracking: toolCallId -> component
524
539
  this.pendingTools = new Map();
@@ -1178,14 +1193,11 @@ export class InteractiveMode {
1178
1193
  while (true) {
1179
1194
  const userInput = await this.getUserInput();
1180
1195
  try {
1181
- await this.session.prompt(userInput.text, {
1182
- streamingBehavior: "steer",
1183
- ...(userInput.images ? { images: userInput.images } : {}),
1184
- ...this.optimisticUserEchoes.promptOptions(userInput.pendingEchoId),
1185
- });
1196
+ await this.session.prompt(userInput.text, this.buildMainLoopPromptOptions(userInput));
1186
1197
  }
1187
1198
  catch (error) {
1188
1199
  this.optimisticUserEchoes.reject(userInput.pendingEchoId);
1200
+ this.clearStatusIndicator("working");
1189
1201
  const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
1190
1202
  this.showError(errorMessage);
1191
1203
  }
@@ -1976,6 +1988,7 @@ export class InteractiveMode {
1976
1988
  this.toolResultReveal.stop();
1977
1989
  this.streamingComponent = undefined;
1978
1990
  this.streamingMessage = undefined;
1991
+ this.assistantTextSegments.clear();
1979
1992
  this.clearPendingTools();
1980
1993
  this.clearToolHookStatuses();
1981
1994
  this.renderInitialMessages();
@@ -2284,13 +2297,17 @@ export class InteractiveMode {
2284
2297
  }
2285
2298
  const hadActiveStatusIndicator = this.activeStatusIndicator !== undefined;
2286
2299
  const isClearingWorking = this.activeStatusIndicator?.kind === "working";
2300
+ const shouldReserveHeight = hadActiveStatusIndicator && this.options.tuiMode === "regular" && this.ui.getClearOnShrink();
2301
+ const renderedHeight = shouldReserveHeight ? this.statusContainer.render(this.ui.terminal.columns).length : 0;
2287
2302
  this.activeStatusIndicator?.dispose();
2288
2303
  this.activeStatusIndicator = undefined;
2289
2304
  if (isClearingWorking) {
2290
2305
  this.workingStartedAt = undefined;
2291
2306
  }
2292
2307
  this.statusContainer.clear();
2293
- if (hadActiveStatusIndicator && this.options.tuiMode === "regular" && this.ui.getClearOnShrink()) {
2308
+ if (shouldReserveHeight) {
2309
+ const idleHeight = Math.min(this.ui.terminal.rows, Math.max(1, renderedHeight || 2));
2310
+ this.idleStatus.setHeight(idleHeight);
2294
2311
  this.statusContainer.addChild(this.idleStatus);
2295
2312
  }
2296
2313
  }
@@ -3402,6 +3419,7 @@ export class InteractiveMode {
3402
3419
  this.footer.invalidate();
3403
3420
  switch (event.type) {
3404
3421
  case "agent_start":
3422
+ this.agentIdle = false;
3405
3423
  this.clearPendingTools();
3406
3424
  this.clearActiveToolExecutionStatus();
3407
3425
  this.clearToolHookStatuses();
@@ -3470,17 +3488,14 @@ export class InteractiveMode {
3470
3488
  this.streamingComponent.setExpanded(this.toolOutputExpanded);
3471
3489
  this.streamingMessage = event.message;
3472
3490
  this.chatContainer.addChild(this.streamingComponent);
3473
- this.streamingReveal.begin(this.streamingComponent, this.streamingMessage);
3491
+ this.streamingReveal.begin(this.streamingComponent, assistantStreamingHeadMessage(this.streamingMessage));
3474
3492
  this.requestStreamingRender();
3475
3493
  }
3476
3494
  break;
3477
3495
  case "message_update":
3478
3496
  if (this.streamingComponent && event.message.role === "assistant") {
3479
3497
  this.streamingMessage = event.message;
3480
- {
3481
- const { head } = splitTrailingAssistantContent(event.message.content);
3482
- this.streamingReveal.setTarget({ ...event.message, content: head });
3483
- }
3498
+ this.streamingReveal.setTarget(assistantStreamingHeadMessage(event.message));
3484
3499
  for (const content of this.streamingMessage.content) {
3485
3500
  if (content.type === "toolCall") {
3486
3501
  let component = this.pendingTools.get(content.id);
@@ -3525,7 +3540,7 @@ export class InteractiveMode {
3525
3540
  this.streamingMessage.errorMessage = errorMessage;
3526
3541
  }
3527
3542
  this.syncTrailingAssistantText(this.streamingMessage);
3528
- this.trailingAssistantComponent = undefined;
3543
+ this.assistantTextSegments.clear();
3529
3544
  this.addContinuityNotice(this.streamingMessage);
3530
3545
  if (this.streamingMessage.stopReason === "aborted" || this.streamingMessage.stopReason === "error") {
3531
3546
  if (!errorMessage) {
@@ -3615,7 +3630,6 @@ export class InteractiveMode {
3615
3630
  if (this.settingsManager.getShowTerminalProgress()) {
3616
3631
  this.ui.terminal.setProgress(false);
3617
3632
  }
3618
- this.clearStatusIndicator("working");
3619
3633
  this.clearActiveToolExecutionStatus();
3620
3634
  this.clearToolHookStatuses();
3621
3635
  this.streamingReveal.stop();
@@ -3625,12 +3639,20 @@ export class InteractiveMode {
3625
3639
  this.streamingComponent = undefined;
3626
3640
  this.streamingMessage = undefined;
3627
3641
  }
3642
+ this.detachAssistantTextSegments();
3628
3643
  this.clearPendingTools();
3629
3644
  this.ui.requestRender();
3630
3645
  break;
3631
3646
  case "agent_settled":
3632
3647
  await this.checkShutdownRequested();
3633
3648
  break;
3649
+ case "agent_idle":
3650
+ this.agentIdle = true;
3651
+ if (this.pendingUserInputs.length === 0) {
3652
+ this.clearStatusIndicator("working");
3653
+ }
3654
+ this.ui.requestRender();
3655
+ break;
3634
3656
  case "continuation_error":
3635
3657
  this.showError(sanitizeTerminalLabel(event.errorMessage));
3636
3658
  break;
@@ -4109,25 +4131,57 @@ export class InteractiveMode {
4109
4131
  syncTrailingAssistantText(message) {
4110
4132
  if (!this.streamingComponent)
4111
4133
  return;
4112
- const { head, tail } = splitTrailingAssistantContent(message.content);
4113
- this.streamingComponent.updateContent({ ...message, content: head }, true);
4114
- if (tail.length === 0) {
4115
- if (this.trailingAssistantComponent) {
4116
- this.chatContainer.detachChild(this.trailingAssistantComponent);
4117
- this.trailingAssistantComponent = undefined;
4118
- }
4134
+ this.streamingComponent.updateContent(assistantStreamingHeadMessage(message), true);
4135
+ const content = message.content;
4136
+ const firstToolIndex = content.findIndex((block) => block.type === "toolCall");
4137
+ if (firstToolIndex === -1) {
4138
+ this.detachAssistantTextSegments();
4119
4139
  return;
4120
4140
  }
4121
- const tailMessage = { ...message, content: tail };
4122
- if (!this.trailingAssistantComponent) {
4123
- this.trailingAssistantComponent = new AssistantMessageComponent(tailMessage, this.hideThinkingBlock, this.getMarkdownThemeWithSettings(), this.hiddenThinkingLabel, this.outputPad, this.getMarkdownTransformers());
4124
- this.trailingAssistantComponent.setExpanded(this.toolOutputExpanded);
4125
- this.chatContainer.addChild(this.trailingAssistantComponent);
4126
- return;
4141
+ let index = firstToolIndex + 1;
4142
+ while (index < content.length) {
4143
+ if (content[index]?.type === "toolCall") {
4144
+ index += 1;
4145
+ continue;
4146
+ }
4147
+ const runStart = index;
4148
+ const runBlocks = [];
4149
+ while (index < content.length && content[index]?.type !== "toolCall") {
4150
+ const runBlock = content[index];
4151
+ if (runBlock)
4152
+ runBlocks.push(runBlock);
4153
+ index += 1;
4154
+ }
4155
+ const runMessage = { ...message, content: runBlocks };
4156
+ const existing = this.assistantTextSegments.get(runStart);
4157
+ if (existing) {
4158
+ existing.updateContent(runMessage, true);
4159
+ continue;
4160
+ }
4161
+ const segment = new AssistantMessageComponent(runMessage, this.hideThinkingBlock, this.getMarkdownThemeWithSettings(), this.hiddenThinkingLabel, this.outputPad, this.getMarkdownTransformers());
4162
+ segment.setExpanded(this.toolOutputExpanded);
4163
+ this.assistantTextSegments.set(runStart, segment);
4164
+ const followingToolCall = content.slice(index).find((block) => block.type === "toolCall");
4165
+ const followingToolCallId = followingToolCall?.type === "toolCall" ? followingToolCall.id : undefined;
4166
+ const followingToolComponent = followingToolCallId ? this.pendingTools.get(followingToolCallId) : undefined;
4167
+ const anchorIndex = followingToolComponent ? this.chatContainer.children.indexOf(followingToolComponent) : -1;
4168
+ if (anchorIndex >= 0)
4169
+ this.chatContainer.children.splice(anchorIndex, 0, segment);
4170
+ else
4171
+ this.chatContainer.addChild(segment);
4172
+ }
4173
+ for (const [runStart, segment] of this.assistantTextSegments) {
4174
+ if (runStart >= content.length || content[runStart]?.type === "toolCall") {
4175
+ this.chatContainer.detachChild(segment);
4176
+ this.assistantTextSegments.delete(runStart);
4177
+ }
4178
+ }
4179
+ }
4180
+ detachAssistantTextSegments() {
4181
+ for (const segment of this.assistantTextSegments.values()) {
4182
+ this.chatContainer.detachChild(segment);
4127
4183
  }
4128
- this.trailingAssistantComponent.updateContent(tailMessage, true);
4129
- this.chatContainer.detachChild(this.trailingAssistantComponent);
4130
- this.chatContainer.addChild(this.trailingAssistantComponent);
4184
+ this.assistantTextSegments.clear();
4131
4185
  }
4132
4186
  createToolExecutionComponent(toolName, toolCallId, args) {
4133
4187
  if (this.chrome) {
@@ -4330,6 +4384,29 @@ export class InteractiveMode {
4330
4384
  };
4331
4385
  });
4332
4386
  }
4387
+ // Build the session.prompt options for a main-loop submission. The optimistic echo
4388
+ // keeps only a prompt that actually started; a buffered prompt consumed by an input
4389
+ // extension with action "handled" clears the retained working dock, but only once
4390
+ // agent_idle has fired (the agentIdle latch) so a settlement-deferred continuation
4391
+ // still in admission keeps its dock.
4392
+ buildMainLoopPromptOptions(userInput) {
4393
+ const echoOptions = this.optimisticUserEchoes.promptOptions(userInput.pendingEchoId);
4394
+ return {
4395
+ streamingBehavior: "steer",
4396
+ ...(userInput.images ? { images: userInput.images } : {}),
4397
+ preflightResult: echoOptions.preflightResult,
4398
+ promptDisposition: (disposition) => {
4399
+ echoOptions.promptDisposition(disposition);
4400
+ // Clear the retained dock on a handled prompt only when it was the last
4401
+ // buffered input; a still-queued follow-up remounts it on agent_start, so
4402
+ // clearing here would bounce the editor/footer.
4403
+ if (disposition === "handled" && this.agentIdle && this.pendingUserInputs.length === 0) {
4404
+ this.clearStatusIndicator("working");
4405
+ this.ui.requestRender();
4406
+ }
4407
+ },
4408
+ };
4409
+ }
4333
4410
  rebuildChatFromMessages() {
4334
4411
  this.chatContainer.clear();
4335
4412
  this.renderSessionEntries(this.sessionManager.buildContextEntries());
@@ -4906,12 +4983,12 @@ export class InteractiveMode {
4906
4983
  return allQueued.length;
4907
4984
  }
4908
4985
  queueCompactionMessage(text, mode, droppedImageCount = 0) {
4909
- const pendingEchoId = this.optimisticUserEchoes.begin(text);
4986
+ // No optimistic echo here: compaction-queued input is waiting state and must
4987
+ // render only in the pending-messages display until it is actually delivered.
4910
4988
  this.compactionQueuedMessages.push({
4911
4989
  text,
4912
4990
  mode,
4913
4991
  enqueueOrder: this.session.reserveQueuedInputOrder(),
4914
- pendingEchoId,
4915
4992
  });
4916
4993
  this.getSessionLogger().debug("compaction_queue_enqueue", {
4917
4994
  mode,
@@ -5384,11 +5461,15 @@ export class InteractiveMode {
5384
5461
  return findExactModelReferenceMatch(searchTerm, [...this.session.modelRuntime.getAvailableSnapshot()]);
5385
5462
  }
5386
5463
  async selectModelFromUi(model, done) {
5464
+ // The selector overlay is already disposed on Enter, so releasing it only
5465
+ // after setModel resolves leaves a stale frozen frame for the whole provider
5466
+ // auth round trip. Release and repaint first, then apply the switch.
5467
+ done?.();
5468
+ this.ui?.requestRender();
5387
5469
  try {
5388
5470
  const systemPromptChange = await this.session.setModel(model);
5389
5471
  this.footer.invalidate();
5390
5472
  this.updateEditorBorderColor();
5391
- done?.();
5392
5473
  const systemPromptStr = systemPromptChange?.systemPromptName
5393
5474
  ? ` (optimized system prompt applied: ${systemPromptChange.systemPromptName})`
5394
5475
  : "";
@@ -5398,7 +5479,6 @@ export class InteractiveMode {
5398
5479
  this.checkDaxnutsEasterEgg(model);
5399
5480
  }
5400
5481
  catch (error) {
5401
- done?.();
5402
5482
  this.showError(error instanceof Error ? error.message : String(error));
5403
5483
  }
5404
5484
  }