soothe-cli 1.2.6__tar.gz → 1.2.7__tar.gz

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 (151) hide show
  1. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/PKG-INFO +1 -1
  2. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/tool_display.py +24 -0
  3. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/messages/cognition_step_activity.py +13 -8
  4. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/.gitignore +0 -0
  5. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/README.md +0 -0
  6. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/pyproject.toml +0 -0
  7. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/__init__.py +0 -0
  8. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/_cli_context.py +0 -0
  9. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/_env_vars.py +0 -0
  10. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/_version.py +0 -0
  11. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/card_wire.py +0 -0
  12. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/__init__.py +0 -0
  13. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/commands/__init__.py +0 -0
  14. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/commands/config_cmd.py +0 -0
  15. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/commands/cron_cmd.py +0 -0
  16. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/commands/loop_cmd.py +0 -0
  17. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/commands/run_cmd.py +0 -0
  18. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/commands/status_cmd.py +0 -0
  19. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/execution/__init__.py +0 -0
  20. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/execution/daemon.py +0 -0
  21. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/execution/daemon_errors.py +0 -0
  22. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/execution/headless.py +0 -0
  23. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/execution/headless_renderer.py +0 -0
  24. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/execution/launcher.py +0 -0
  25. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/main.py +0 -0
  26. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/cli/soothecli.py +0 -0
  27. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/commands/__init__.py +0 -0
  28. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/commands/binding.py +0 -0
  29. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/commands/command_registry.py +0 -0
  30. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/commands/command_router.py +0 -0
  31. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/commands/slash_commands.py +0 -0
  32. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/commands/subagent_routing.py +0 -0
  33. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/config/__init__.py +0 -0
  34. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/config/cli_config.py +0 -0
  35. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/config/loader.py +0 -0
  36. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/config/logging_setup.py +0 -0
  37. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/__init__.py +0 -0
  38. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/card.py +0 -0
  39. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/card_binder.py +0 -0
  40. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/markdown_theme.py +0 -0
  41. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/media_utils.py +0 -0
  42. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/mermaid_render.py +0 -0
  43. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/path_utils.py +0 -0
  44. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/preview_limits.py +0 -0
  45. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/shell_color.py +0 -0
  46. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/spinner_labels.py +0 -0
  47. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/text_extract.py +0 -0
  48. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/theme.py +0 -0
  49. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/tips.py +0 -0
  50. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/display/unicode_security.py +0 -0
  51. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/loops/__init__.py +0 -0
  52. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/loops/sessions.py +0 -0
  53. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/model_config.py +0 -0
  54. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/project_utils.py +0 -0
  55. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/__init__.py +0 -0
  56. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/headless/processor.py +0 -0
  57. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/headless/processor_state.py +0 -0
  58. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/parse/tool_call_resolution.py +0 -0
  59. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/policy/tui_trace_log.py +0 -0
  60. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/presentation/duration_format.py +0 -0
  61. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/presentation/engine.py +0 -0
  62. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/presentation/id_format.py +0 -0
  63. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/presentation/renderer_base.py +0 -0
  64. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/presentation/renderer_protocol.py +0 -0
  65. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/presentation/step_id_format.py +0 -0
  66. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/presentation/subagent_task_display.py +0 -0
  67. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/state/file_tracker.py +0 -0
  68. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/state/session_stats.py +0 -0
  69. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/state/step_router.py +0 -0
  70. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/state/stream_accumulator.py +0 -0
  71. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/token_events_debug.py +0 -0
  72. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/token_usage.py +0 -0
  73. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/transport/session.py +0 -0
  74. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/turn/prepare.py +0 -0
  75. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/wire/chunk_filter.py +0 -0
  76. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/wire/message_text.py +0 -0
  77. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/runtime/wire/messages.py +0 -0
  78. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/settings/__init__.py +0 -0
  79. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/settings/_console_impl.py +0 -0
  80. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/settings/bootstrap.py +0 -0
  81. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/settings/core.py +0 -0
  82. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/settings/glyphs.py +0 -0
  83. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/settings/provider.py +0 -0
  84. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/settings/shell_allow.py +0 -0
  85. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/settings/skills_dirs.py +0 -0
  86. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/settings/stream_config.py +0 -0
  87. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/__init__.py +0 -0
  88. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/__init__.py +0 -0
  89. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/_app.py +0 -0
  90. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/_clarification.py +0 -0
  91. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/_entrypoints.py +0 -0
  92. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/_execution.py +0 -0
  93. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/_history.py +0 -0
  94. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/_messages_mixin.py +0 -0
  95. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/_model.py +0 -0
  96. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/_model_params.py +0 -0
  97. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/_startup.py +0 -0
  98. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/_terminal.py +0 -0
  99. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/_theme_prefs.py +0 -0
  100. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/_types.py +0 -0
  101. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/_ui.py +0 -0
  102. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/app/app.tcss +0 -0
  103. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/composer_mode.py +0 -0
  104. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/file_change_notify.py +0 -0
  105. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/file_change_renderers.py +0 -0
  106. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/input.py +0 -0
  107. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/skills/__init__.py +0 -0
  108. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/skills/invocation.py +0 -0
  109. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/skills/load.py +0 -0
  110. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/textual_adapter.py +0 -0
  111. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/__init__.py +0 -0
  112. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/_links.py +0 -0
  113. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/autocomplete.py +0 -0
  114. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/chat_input.py +0 -0
  115. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/clipboard.py +0 -0
  116. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/context_data.py +0 -0
  117. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/context_viewer.py +0 -0
  118. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/diff.py +0 -0
  119. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/editor.py +0 -0
  120. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/file_change_preview.py +0 -0
  121. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/help_screen.py +0 -0
  122. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/history.py +0 -0
  123. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/loading.py +0 -0
  124. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/loop_selector.py +0 -0
  125. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/mcp_viewer.py +0 -0
  126. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/message_store.py +0 -0
  127. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/messages/__init__.py +0 -0
  128. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/messages/_helpers.py +0 -0
  129. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/messages/app.py +0 -0
  130. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/messages/assistant.py +0 -0
  131. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/messages/cognition_goal_tree.py +0 -0
  132. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/messages/cognition_reason.py +0 -0
  133. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/messages/cognition_step.py +0 -0
  134. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/messages/diff_message.py +0 -0
  135. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/messages/error.py +0 -0
  136. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/messages/skill.py +0 -0
  137. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/messages/structured_ask_user.py +0 -0
  138. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/messages/user.py +0 -0
  139. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/model_selector.py +0 -0
  140. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/notification_settings.py +0 -0
  141. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/pinned_goal_bar.py +0 -0
  142. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/plan_quick_view_overlay.py +0 -0
  143. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/queued_goals_bar.py +0 -0
  144. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/router_profile_selector.py +0 -0
  145. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/status.py +0 -0
  146. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/theme_selector.py +0 -0
  147. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/tui/widgets/welcome.py +0 -0
  148. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/update_check.py +0 -0
  149. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/ux/__init__.py +0 -0
  150. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/ux/subagent_progress.py +0 -0
  151. {soothe_cli-1.2.6 → soothe_cli-1.2.7}/src/soothe_cli/ux/subagent_wire_display.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: soothe-cli
3
- Version: 1.2.6
3
+ Version: 1.2.7
4
4
  Summary: Soothe CLI client - communicates with daemon via WebSocket
5
5
  Project-URL: Homepage, https://github.com/mirasoth/soothe
6
6
  Project-URL: Documentation, https://soothe.readthedocs.io
@@ -75,6 +75,30 @@ def truncate_to_width(text: str, max_cols: int, *, ellipsis: str = "…") -> str
75
75
  return "".join(out) + ellipsis
76
76
 
77
77
 
78
+ def truncate_to_width_tail(text: str, max_cols: int, *, ellipsis: str = "…") -> str:
79
+ """Truncate *text* to `max_cols` terminal columns, prepending an ellipsis.
80
+
81
+ Mirror of :func:`truncate_to_width` that keeps the *tail* of the string
82
+ (most recent content) instead of the head. Used for reasoning/thinking
83
+ lines where the latest progress is what the user wants to read.
84
+ """
85
+ if max_cols <= 0 or display_width(text) <= max_cols:
86
+ return text
87
+ ellipsis_width = display_width(ellipsis)
88
+ target = max_cols - ellipsis_width
89
+ if target <= 0:
90
+ return ellipsis[:max_cols] if ellipsis_width > max_cols else ellipsis
91
+ out: list[str] = []
92
+ width = 0
93
+ for ch in reversed(text):
94
+ w = _char_width(ch)
95
+ if width + w > target:
96
+ break
97
+ out.append(ch)
98
+ width += w
99
+ return ellipsis + "".join(reversed(out))
100
+
101
+
78
102
  def compact_arg_text(text: str) -> str:
79
103
  """Collapse whitespace/newlines so activity lines stay on one row."""
80
104
  return " ".join(text.split())
@@ -33,6 +33,7 @@ from soothe_cli.display.tool_display import (
33
33
  format_step_tool_activity_command,
34
34
  format_step_tool_activity_line,
35
35
  truncate_to_width,
36
+ truncate_to_width_tail,
36
37
  )
37
38
  from soothe_cli.runtime.presentation.duration_format import (
38
39
  format_duration_ms,
@@ -1063,8 +1064,9 @@ class StepActivityTree:
1063
1064
  The thinking pane shows the *latest* ``reasoning_preview_lines`` lines
1064
1065
  of reasoning (captured thinking tokens from
1065
1066
  ``additional_kwargs["reasoning_content"]`` plus untagged CoreAgent step
1066
- text). Older lines scroll off: reasoning grows while the step runs, so
1067
- the tail is what the user wants to read.
1067
+ text). Older lines scroll off and long lines are tail-truncated
1068
+ (ellipsis prepended): reasoning grows while the step runs, so the tail
1069
+ is what the user wants to read.
1068
1070
  """
1069
1071
  colors = _safe_colors(colors)
1070
1072
  todo_items = list(todos or [])
@@ -1296,18 +1298,21 @@ class StepActivityTree:
1296
1298
  # --- thinking pane -------------------------------------------------
1297
1299
  thinking_lines: list[PaneLine] = []
1298
1300
  if reasoning_text:
1299
- char_limit = reasoning_line_max_chars
1301
+ # Thinking lines tail-truncate: when a line is too long, the
1302
+ # *latest* content is kept (ellipsis prepended) because reasoning
1303
+ # accumulates while the step runs and the user wants to see the
1304
+ # most recent progress, not the stale head.
1305
+ prefix_w = display_width(" ") + display_width(f"{g.bullet} ")
1300
1306
  if max_cols and max_cols > 0:
1301
- char_limit = min(char_limit, max_cols)
1307
+ content_budget = max(1, min(reasoning_line_max_chars, max_cols - prefix_w))
1308
+ else:
1309
+ content_budget = reasoning_line_max_chars
1302
1310
  shown_lines: list[str] = []
1303
1311
  for ln in reasoning_text.splitlines():
1304
1312
  stripped = ln.strip()
1305
1313
  if not stripped:
1306
1314
  continue
1307
- if len(stripped) > char_limit:
1308
- shown_lines.append(stripped[: char_limit - 1] + "…")
1309
- else:
1310
- shown_lines.append(stripped)
1315
+ shown_lines.append(truncate_to_width_tail(stripped, content_budget))
1311
1316
  tail_lines = (
1312
1317
  shown_lines[-reasoning_preview_lines:] if reasoning_preview_lines > 0 else []
1313
1318
  )
File without changes
File without changes
File without changes