soothe-cli 1.2.9__tar.gz → 1.3.0__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.9 → soothe_cli-1.3.0}/PKG-INFO +1 -1
  2. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/spinner_labels.py +0 -7
  3. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/textual_adapter.py +14 -64
  4. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/messages/cognition_goal_tree.py +17 -17
  5. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/messages/cognition_step.py +15 -21
  6. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/messages/cognition_step_activity.py +1 -5
  7. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/plan_quick_view_overlay.py +10 -8
  8. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/.gitignore +0 -0
  9. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/README.md +0 -0
  10. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/pyproject.toml +0 -0
  11. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/__init__.py +0 -0
  12. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/_cli_context.py +0 -0
  13. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/_env_vars.py +0 -0
  14. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/_version.py +0 -0
  15. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/card_wire.py +0 -0
  16. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/__init__.py +0 -0
  17. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/commands/__init__.py +0 -0
  18. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/commands/config_cmd.py +0 -0
  19. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/commands/cron_cmd.py +0 -0
  20. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/commands/loop_cmd.py +0 -0
  21. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/commands/run_cmd.py +0 -0
  22. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/commands/status_cmd.py +0 -0
  23. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/execution/__init__.py +0 -0
  24. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/execution/daemon.py +0 -0
  25. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/execution/daemon_errors.py +0 -0
  26. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/execution/headless.py +0 -0
  27. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/execution/headless_renderer.py +0 -0
  28. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/execution/launcher.py +0 -0
  29. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/main.py +0 -0
  30. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/cli/soothecli.py +0 -0
  31. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/commands/__init__.py +0 -0
  32. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/commands/binding.py +0 -0
  33. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/commands/command_registry.py +0 -0
  34. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/commands/command_router.py +0 -0
  35. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/commands/slash_commands.py +0 -0
  36. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/commands/subagent_routing.py +0 -0
  37. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/config/__init__.py +0 -0
  38. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/config/cli_config.py +0 -0
  39. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/config/loader.py +0 -0
  40. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/config/logging_setup.py +0 -0
  41. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/__init__.py +0 -0
  42. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/card.py +0 -0
  43. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/card_binder.py +0 -0
  44. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/markdown_theme.py +0 -0
  45. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/media_utils.py +0 -0
  46. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/mermaid_render.py +0 -0
  47. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/path_utils.py +0 -0
  48. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/preview_limits.py +0 -0
  49. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/shell_color.py +0 -0
  50. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/text_extract.py +0 -0
  51. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/theme.py +0 -0
  52. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/tips.py +0 -0
  53. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/tool_display.py +0 -0
  54. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/display/unicode_security.py +0 -0
  55. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/loops/__init__.py +0 -0
  56. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/loops/sessions.py +0 -0
  57. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/model_config.py +0 -0
  58. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/project_utils.py +0 -0
  59. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/__init__.py +0 -0
  60. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/headless/processor.py +0 -0
  61. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/headless/processor_state.py +0 -0
  62. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/parse/tool_call_resolution.py +0 -0
  63. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/policy/tui_trace_log.py +0 -0
  64. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/presentation/duration_format.py +0 -0
  65. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/presentation/engine.py +0 -0
  66. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/presentation/id_format.py +0 -0
  67. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/presentation/renderer_base.py +0 -0
  68. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/presentation/renderer_protocol.py +0 -0
  69. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/presentation/step_id_format.py +0 -0
  70. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/presentation/subagent_task_display.py +0 -0
  71. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/state/file_tracker.py +0 -0
  72. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/state/session_stats.py +0 -0
  73. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/state/step_router.py +0 -0
  74. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/state/stream_accumulator.py +0 -0
  75. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/token_events_debug.py +0 -0
  76. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/token_usage.py +0 -0
  77. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/transport/session.py +0 -0
  78. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/turn/prepare.py +0 -0
  79. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/wire/chunk_filter.py +0 -0
  80. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/wire/message_text.py +0 -0
  81. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/runtime/wire/messages.py +0 -0
  82. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/settings/__init__.py +0 -0
  83. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/settings/_console_impl.py +0 -0
  84. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/settings/bootstrap.py +0 -0
  85. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/settings/core.py +0 -0
  86. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/settings/glyphs.py +0 -0
  87. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/settings/provider.py +0 -0
  88. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/settings/shell_allow.py +0 -0
  89. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/settings/skills_dirs.py +0 -0
  90. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/settings/stream_config.py +0 -0
  91. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/__init__.py +0 -0
  92. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/__init__.py +0 -0
  93. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/_app.py +0 -0
  94. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/_clarification.py +0 -0
  95. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/_entrypoints.py +0 -0
  96. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/_execution.py +0 -0
  97. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/_history.py +0 -0
  98. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/_messages_mixin.py +0 -0
  99. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/_model.py +0 -0
  100. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/_model_params.py +0 -0
  101. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/_startup.py +0 -0
  102. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/_terminal.py +0 -0
  103. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/_theme_prefs.py +0 -0
  104. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/_types.py +0 -0
  105. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/_ui.py +0 -0
  106. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/app/app.tcss +0 -0
  107. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/composer_mode.py +0 -0
  108. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/file_change_notify.py +0 -0
  109. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/file_change_renderers.py +0 -0
  110. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/input.py +0 -0
  111. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/skills/__init__.py +0 -0
  112. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/skills/invocation.py +0 -0
  113. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/skills/load.py +0 -0
  114. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/__init__.py +0 -0
  115. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/_links.py +0 -0
  116. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/autocomplete.py +0 -0
  117. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/chat_input.py +0 -0
  118. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/clipboard.py +0 -0
  119. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/context_data.py +0 -0
  120. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/context_viewer.py +0 -0
  121. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/diff.py +0 -0
  122. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/editor.py +0 -0
  123. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/file_change_preview.py +0 -0
  124. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/help_screen.py +0 -0
  125. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/history.py +0 -0
  126. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/loading.py +0 -0
  127. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/loop_selector.py +0 -0
  128. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/mcp_viewer.py +0 -0
  129. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/message_store.py +0 -0
  130. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/messages/__init__.py +0 -0
  131. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/messages/_helpers.py +0 -0
  132. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/messages/app.py +0 -0
  133. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/messages/assistant.py +0 -0
  134. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/messages/cognition_reason.py +0 -0
  135. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/messages/diff_message.py +0 -0
  136. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/messages/error.py +0 -0
  137. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/messages/skill.py +0 -0
  138. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/messages/structured_ask_user.py +0 -0
  139. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/messages/user.py +0 -0
  140. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/model_selector.py +0 -0
  141. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/notification_settings.py +0 -0
  142. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/pinned_goal_bar.py +0 -0
  143. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/queued_goals_bar.py +0 -0
  144. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/router_profile_selector.py +0 -0
  145. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/status.py +0 -0
  146. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/theme_selector.py +0 -0
  147. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/tui/widgets/welcome.py +0 -0
  148. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/update_check.py +0 -0
  149. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/ux/__init__.py +0 -0
  150. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/src/soothe_cli/ux/subagent_progress.py +0 -0
  151. {soothe_cli-1.2.9 → soothe_cli-1.3.0}/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.9
3
+ Version: 1.3.0
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
@@ -56,13 +56,6 @@ def map_plan_phase_spinner_label(label: str) -> str:
56
56
  return SPINNER_LABEL_THINKING
57
57
 
58
58
 
59
- def retry_spinner_hint(*, attempt: int, max_attempts: int) -> str | None:
60
- """Hint suffix for LLM retries, e.g. `2/3`."""
61
- if attempt > 0 and max_attempts > 0:
62
- return f"{attempt}/{max_attempts}"
63
- return None
64
-
65
-
66
59
  def daemon_connect_hint_extra(*, attempt: int, max_attempts: int) -> str | None:
67
60
  """Hint suffix for daemon connect retries, e.g. `attempt 2/3`."""
68
61
  if max_attempts <= 1 or attempt <= 1:
@@ -44,7 +44,6 @@ if TYPE_CHECKING:
44
44
  from langchain_core.messages import AIMessage, HumanMessage
45
45
  from soothe_client.appkit.turn import run_turn_pipeline
46
46
  from soothe_client.core.events import (
47
- INTENT_CLASSIFIED,
48
47
  LOOP_CLARIFICATION_ANSWERED,
49
48
  LOOP_CLARIFICATION_DEFERRED,
50
49
  LOOP_CLARIFICATION_REQUESTED,
@@ -95,14 +94,12 @@ from soothe_cli.display.spinner_labels import (
95
94
  SPINNER_LABEL_EXECUTING,
96
95
  SPINNER_LABEL_INPUT,
97
96
  SPINNER_LABEL_OFFLOADING,
98
- SPINNER_LABEL_RETRYING,
99
97
  SPINNER_LABEL_SUBMITTING,
100
98
  SPINNER_LABEL_SYNTHESIZING,
101
99
  SPINNER_LABEL_THINKING,
102
100
  SPINNER_LABEL_TOOLS,
103
101
  SPINNER_LABEL_WRITING,
104
102
  map_plan_phase_spinner_label,
105
- retry_spinner_hint,
106
103
  )
107
104
  from soothe_cli.runtime.parse.tool_call_resolution import (
108
105
  build_streaming_args_overlay,
@@ -177,8 +174,8 @@ from soothe_cli.ux.subagent_wire_display import (
177
174
 
178
175
  logger = logging.getLogger(__name__)
179
176
 
180
- # LLM retry event type for step card status display
181
- LLM_RETRY_ATTEMPT = "soothe.cognition.llm.retry.attempt"
177
+ # LLM call boundary — separates reasoning from different LLM calls
178
+ LLM_CALL_BOUNDARY = "soothe.cognition.llm.call.boundary"
182
179
  # Plan-phase cognition card (not yet in soothe_client.core.events exports used by CLI).
183
180
  STRANGE_LOOP_REASONED = "soothe.cognition.strange_loop.reasoned"
184
181
 
@@ -370,7 +367,7 @@ class TextualUIAdapter:
370
367
  """Execution mode from the latest ``plan_decision`` (``dependency`` / ``parallel``).
371
368
 
372
369
  Used for step-card lifecycle (stuck predecessor finalization); the plan
373
- panel header shows ``intake_label`` instead.
370
+ panel header shows ``task_complexity`` instead.
374
371
  """
375
372
 
376
373
  self._plan_step_order: list[str] = []
@@ -4401,11 +4398,7 @@ async def execute_task_textual(
4401
4398
  if isinstance(raw_steps, list):
4402
4399
  execution_mode = str(data.get("execution_mode", "")).strip()
4403
4400
  adapter._last_plan_execution_mode = execution_mode or None
4404
- intake_label = str(
4405
- data.get("task_complexity")
4406
- or data.get("intake_label")
4407
- or ""
4408
- ).strip()
4401
+ task_complexity = str(data.get("task_complexity") or "").strip()
4409
4402
  _record_plan_step_dag(adapter, raw_steps)
4410
4403
  adapter._execute_wave_total = len(raw_steps)
4411
4404
  done_steps = int(data.get("done_steps", 0) or 0)
@@ -4422,8 +4415,8 @@ async def execute_task_textual(
4422
4415
  tree = adapter._goal_tree_message
4423
4416
  if tree is not None:
4424
4417
  tree.sync_plan_steps(raw_steps)
4425
- if intake_label:
4426
- tree.set_intake_label(intake_label)
4418
+ if task_complexity:
4419
+ tree.set_task_complexity(task_complexity)
4427
4420
  if execution_mode == "parallel":
4428
4421
  ui_coalesce.execute_wave_active = True
4429
4422
  continue
@@ -4646,32 +4639,22 @@ async def execute_task_textual(
4646
4639
  )
4647
4640
  continue
4648
4641
 
4649
- # Handle LLM retry events for step card status display
4650
- if event_type == LLM_RETRY_ATTEMPT:
4651
- # Find the running step card for this thread and update retry status
4652
- attempt = int(data.get("attempt", 0))
4653
- max_attempts = int(data.get("max_attempts", 0))
4654
- error_type = str(data.get("error_type", "timeout"))
4655
- # Try to find a running step card via namespace or active steps
4642
+ # LLM call boundary — signal the step card to start
4643
+ # a new reasoning line so reasoning from different
4644
+ # LLM calls within a step doesn't merge into one row.
4645
+ if event_type == LLM_CALL_BOUNDARY:
4656
4646
  widget = None
4657
4647
  if ns_key:
4658
4648
  widget = adapter._step_by_namespace.get(ns_key)
4659
4649
  if widget is None:
4660
- # Fallback: find any running step in current step messages
4661
4650
  for step_widget in adapter._current_step_messages.values():
4662
4651
  if step_widget._status == "running": # noqa: SLF001
4663
4652
  widget = step_widget
4664
4653
  break
4665
- if widget is not None:
4666
- widget.set_retry_status(attempt, max_attempts, error_type)
4667
- elif adapter._set_spinner and not clarification_pending:
4668
- await adapter._set_spinner(
4669
- SPINNER_LABEL_RETRYING,
4670
- hint_extra=retry_spinner_hint(
4671
- attempt=attempt,
4672
- max_attempts=max_attempts,
4673
- ),
4674
- )
4654
+ if widget is not None and hasattr(
4655
+ widget, "start_new_reasoning_line"
4656
+ ):
4657
+ widget.start_new_reasoning_line()
4675
4658
  continue
4676
4659
 
4677
4660
  if event_type == STRANGE_LOOP_PLAN_PHASE:
@@ -4729,39 +4712,6 @@ async def execute_task_textual(
4729
4712
  await adapter._set_spinner(None)
4730
4713
  continue
4731
4714
 
4732
- if event_type == INTENT_CLASSIFIED:
4733
- intake_label = str(
4734
- data.get("task_complexity") or data.get("intake_label") or ""
4735
- ).strip()
4736
- if intake_label:
4737
- if adapter._goal_tree_message is None:
4738
- await _ensure_goal_tree_message(adapter)
4739
- tree = adapter._goal_tree_message
4740
- if tree is not None:
4741
- tree.set_intake_label(intake_label)
4742
- reasoning = str(data.get("reasoning", "")).strip()
4743
- if not reasoning:
4744
- continue
4745
- pending_text = pending_text_by_namespace.get(ns_key, "")
4746
- if pending_text:
4747
- await _flush_assistant_text_ns(
4748
- adapter,
4749
- pending_text,
4750
- ns_key,
4751
- assistant_message_by_namespace,
4752
- router=router,
4753
- )
4754
- pending_text_by_namespace[ns_key] = ""
4755
- assistant_message_by_namespace.pop(ns_key, None)
4756
- intent_widget = CognitionReasonMessage(
4757
- status="",
4758
- iteration=0,
4759
- plan_reasoning=reasoning,
4760
- id=f"intent-{uuid.uuid4().hex[:8]}",
4761
- )
4762
- await adapter._mount_message(intent_widget)
4763
- continue
4764
-
4765
4715
  if event_type == STRANGE_LOOP_REASONED:
4766
4716
  assessment_reasoning = str(
4767
4717
  data.get("assessment_reasoning", "")
@@ -36,7 +36,7 @@ logger = logging.getLogger(__name__)
36
36
 
37
37
  # Host may send an execute-phase complexity (``minimal``/``simple``/``complex``)
38
38
  # or a routing label (``minimal``/``simple``/``complex``).
39
- _INTAKE_LABELS = frozenset({"minimal", "simple", "complex"})
39
+ _TASK_COMPLEXITIES = frozenset({"minimal", "simple", "complex"})
40
40
 
41
41
  _MAX_GOAL_HEADER = 100
42
42
  _MAX_GOAL_STEP_DESC = 80
@@ -194,7 +194,7 @@ class CognitionGoalTreeMessage(Vertical):
194
194
  self._footer_plain: str = ""
195
195
  self._footer_visible: bool = False
196
196
  self._footer_tone: str = "muted" # success | error | muted (step/tool completion parity)
197
- self._intake_label: str = ""
197
+ self._task_complexity: str = ""
198
198
  self._spinner_position: int = 0
199
199
  self._loop_started_at: float | None = None
200
200
  self._steps_static: Static | None = None
@@ -249,9 +249,9 @@ class CognitionGoalTreeMessage(Vertical):
249
249
  animate_running=self._loop_executing(),
250
250
  )
251
251
 
252
- def intake_label(self) -> str:
253
- """Intake complexity, or empty when the host sent no usable value."""
254
- return self._intake_label
252
+ def task_complexity(self) -> str:
253
+ """Forced task complexity, or empty when the host sent no usable value."""
254
+ return self._task_complexity
255
255
 
256
256
  def _goal_header_content(self) -> Content:
257
257
  """Goal title for restored/mounted tree cards (not the live plan panel).
@@ -260,9 +260,9 @@ class CognitionGoalTreeMessage(Vertical):
260
260
  `plan_panel_prefix_content` + `_plan_quick_view_header` instead.
261
261
  """
262
262
  body = self._clip(self._goal_text, _MAX_GOAL_HEADER)
263
- intake = self.intake_label()
264
- if intake:
265
- body = f"{body} · {intake}"
263
+ complexity = self.task_complexity()
264
+ if complexity:
265
+ body = f"{body} · {complexity}"
266
266
  try:
267
267
  colors = theme.get_theme_colors(self)
268
268
  except Exception: # noqa: BLE001
@@ -531,7 +531,7 @@ class CognitionGoalTreeMessage(Vertical):
531
531
  """Step rows (plus terminal footer) for the Ctrl+t plan panel body.
532
532
 
533
533
  Omits the goal title line: the overlay header carries the short loop
534
- id, intake complexity, and elapsed time via `_plan_quick_view_header`.
534
+ id, task complexity, and elapsed time via `_plan_quick_view_header`.
535
535
  """
536
536
  parts: list[object] = []
537
537
  steps = self._assemble_steps_content(max_line_width=max_line_width)
@@ -628,7 +628,7 @@ class CognitionGoalTreeMessage(Vertical):
628
628
  return {
629
629
  "goal": self._goal_text,
630
630
  "max_iterations": self._max_iterations,
631
- "intake_label": self._intake_label,
631
+ "task_complexity": self._task_complexity,
632
632
  "steps": steps_out,
633
633
  "footer_visible": self._footer_visible,
634
634
  "footer_text": self._footer_plain,
@@ -642,9 +642,9 @@ class CognitionGoalTreeMessage(Vertical):
642
642
  """Restore in-memory goal tree state from :meth:`snapshot_dict` output."""
643
643
  self._goal_text = str(snap.get("goal", self._goal_text))
644
644
  self._max_iterations = int(snap.get("max_iterations", self._max_iterations))
645
- raw_intake = str(snap.get("intake_label", "") or "").strip().lower()
646
- if raw_intake in _INTAKE_LABELS:
647
- self._intake_label = raw_intake
645
+ raw_complexity = str(snap.get("task_complexity", "") or "").strip().lower()
646
+ if raw_complexity in _TASK_COMPLEXITIES:
647
+ self._task_complexity = raw_complexity
648
648
  self._footer_plain = str(snap.get("footer_text", ""))
649
649
  self._footer_visible = bool(snap.get("footer_visible", False))
650
650
  tone = str(snap.get("footer_tone", "muted") or "muted")
@@ -677,12 +677,12 @@ class CognitionGoalTreeMessage(Vertical):
677
677
  self._step_order.append(sid)
678
678
  self._steps[sid] = st
679
679
 
680
- def set_intake_label(self, label: str) -> None:
681
- """Show intake complexity in the goal header."""
680
+ def set_task_complexity(self, label: str) -> None:
681
+ """Show task complexity in the goal header."""
682
682
  normalized = (label or "").strip().lower()
683
- if normalized not in _INTAKE_LABELS:
683
+ if normalized not in _TASK_COMPLEXITIES:
684
684
  return
685
- self._intake_label = normalized
685
+ self._task_complexity = normalized
686
686
  self._sync_goal_tree_widgets()
687
687
 
688
688
  def sync_plan_steps(self, steps: list[dict[str, Any]]) -> None:
@@ -152,10 +152,6 @@ class CognitionStepMessage(Vertical):
152
152
  self._last_tool_call_count: int = 0
153
153
  self._last_summary: str = ""
154
154
  self._input_tokens: int = 0
155
- # Retry tracking for running status display
156
- self._retry_attempt: int = 0
157
- self._max_retry_attempts: int = 0
158
- self._retry_error_type: str | None = None
159
155
  self._output_tokens: int = 0
160
156
  self._interrupt_message: str | None = None
161
157
  self._deferred_interrupted: str | None = None
@@ -166,6 +162,8 @@ class CognitionStepMessage(Vertical):
166
162
  self._todos: list[dict[str, str]] = []
167
163
  self._reasoning_buffer: str = ""
168
164
  """Captured thinking-token reasoning forwarded from the LLM provider."""
165
+ self._pending_reasoning_newline: bool = False
166
+ """Set by ``start_new_reasoning_line`` to insert ``\\n`` before the next delta."""
169
167
  self._execute_assistant_buffer: str = ""
170
168
  self._last_completed_execute_prose: str = ""
171
169
  """Execute-step prose frozen when ``set_complete`` runs (TUI dedupe vs goal_completion)."""
@@ -265,8 +263,6 @@ class CognitionStepMessage(Vertical):
265
263
  task_count=index.task_delegation_count,
266
264
  input_tokens=self._input_tokens,
267
265
  output_tokens=self._output_tokens,
268
- retry_attempt=self._retry_attempt,
269
- max_retry_attempts=self._max_retry_attempts,
270
266
  format_token=format_token_count,
271
267
  )
272
268
 
@@ -481,10 +477,23 @@ class CognitionStepMessage(Vertical):
481
477
  if self._status == "running":
482
478
  self._refresh_execute_assistant_running_display()
483
479
 
480
+ def start_new_reasoning_line(self) -> None:
481
+ """Mark that the next reasoning delta starts a new LLM call's output.
482
+
483
+ Called when the TUI receives a ``soothe.cognition.llm.call.boundary``
484
+ event. The next ``append_reasoning_delta`` will prepend ``\\n`` so
485
+ reasoning from different LLM calls within a step appears on separate
486
+ lines in the thinking pane.
487
+ """
488
+ self._pending_reasoning_newline = True
489
+
484
490
  def append_reasoning_delta(self, delta: str) -> None:
485
491
  """Accumulate captured thinking-token reasoning for the Reasoning branch."""
486
492
  if not delta:
487
493
  return
494
+ if self._pending_reasoning_newline and self._reasoning_buffer:
495
+ self._reasoning_buffer += "\n"
496
+ self._pending_reasoning_newline = False
488
497
  self._reasoning_buffer += delta
489
498
  if self._status in ("running", "pending"):
490
499
  self._sync_step_card_surface()
@@ -1261,21 +1270,6 @@ class CognitionStepMessage(Vertical):
1261
1270
  self._animation_timer.stop()
1262
1271
  self._animation_timer = None
1263
1272
 
1264
- def set_retry_status(self, attempt: int, max_attempts: int, error_type: str) -> None:
1265
- """Update retry status for running animation display.
1266
-
1267
- Args:
1268
- attempt: Current attempt number (1-indexed).
1269
- max_attempts: Maximum attempts allowed.
1270
- error_type: "timeout" or "rate_limit".
1271
- """
1272
- self._retry_attempt = attempt
1273
- self._max_retry_attempts = max_attempts
1274
- self._retry_error_type = error_type
1275
- # Trigger immediate refresh of running status (bypass visibility check)
1276
- if self._status == "running":
1277
- self._sync_step_card_surface()
1278
-
1279
1273
  def _update_running_animation(self) -> None:
1280
1274
  """Animation timer callback: advance spinner and repaint the card surface."""
1281
1275
  if self._status != "running":
@@ -152,13 +152,11 @@ def compact_step_title_meta(
152
152
  task_count: int,
153
153
  input_tokens: int = 0,
154
154
  output_tokens: int = 0,
155
- retry_attempt: int = 0,
156
- max_retry_attempts: int = 0,
157
155
  format_token: Any = None,
158
156
  ) -> str:
159
157
  """Compact middot meta for the step title.
160
158
 
161
- Forms: ` · 45s · 12/1 · ↑8.1K ↓2.0K · ↻1/3`. Description is not truncated;
159
+ Forms: ` · 45s · 12/1 · ↑8.1K ↓2.0K`. Description is not truncated;
162
160
  callers append this string after the full step brief.
163
161
  """
164
162
  parts: list[str] = []
@@ -169,8 +167,6 @@ def compact_step_title_meta(
169
167
  if input_tokens or output_tokens:
170
168
  fmt = format_token if callable(format_token) else str
171
169
  parts.append(f"↑{fmt(int(input_tokens))} ↓{fmt(int(output_tokens))}")
172
- if retry_attempt > 0 and max_retry_attempts > 0:
173
- parts.append(f"↻{int(retry_attempt)}/{int(max_retry_attempts)}")
174
170
  if not parts:
175
171
  return ""
176
172
  return " · " + " · ".join(parts)
@@ -33,7 +33,7 @@ logger = logging.getLogger(__name__)
33
33
  def _plan_quick_view_title(
34
34
  loop_id: str | None,
35
35
  *,
36
- intake: str | None = None,
36
+ task_complexity: str | None = None,
37
37
  elapsed: str | None = None,
38
38
  tokens: str | None = None,
39
39
  ) -> str:
@@ -42,7 +42,7 @@ def _plan_quick_view_title(
42
42
  short_id = compact_id_suffix(loop_id or "")
43
43
  if short_id:
44
44
  title = f"{title} [{short_id}]"
45
- label = (intake or "").strip().lower()
45
+ label = (task_complexity or "").strip().lower()
46
46
  if label:
47
47
  title = f"{title} · {label}"
48
48
  if elapsed:
@@ -56,7 +56,7 @@ def _plan_quick_view_header(
56
56
  loop_id: str | None,
57
57
  *,
58
58
  prefix: Content | None = None,
59
- intake: str | None = None,
59
+ task_complexity: str | None = None,
60
60
  show_enter_hint: bool = False,
61
61
  elapsed: str | None = None,
62
62
  tokens: str | None = None,
@@ -65,7 +65,7 @@ def _plan_quick_view_header(
65
65
  """Build the quick-view title row: status glyph, bold title, dim hints.
66
66
 
67
67
  The title carries everything that identifies the running goal — short loop
68
- id, intake complexity, and live elapsed — so the panel needs no separate
68
+ id, task complexity, and live elapsed — so the panel needs no separate
69
69
  goal line. It is rendered with the same `SECONDARY_TEXT_STYLE` dim style
70
70
  used by the welcome-area Loop ID, then bolded via `bold dim` so the title
71
71
  stands out while staying de-emphasized. `prefix` is the goal lifecycle
@@ -76,7 +76,9 @@ def _plan_quick_view_header(
76
76
  title exceeds the budget it is ellipsized.
77
77
  """
78
78
  dim_style = theme.SECONDARY_TEXT_STYLE
79
- title = _plan_quick_view_title(loop_id, intake=intake, elapsed=elapsed, tokens=tokens)
79
+ title = _plan_quick_view_title(
80
+ loop_id, task_complexity=task_complexity, elapsed=elapsed, tokens=tokens
81
+ )
80
82
  hints: list[str] = []
81
83
  if show_enter_hint:
82
84
  hints.append("Enter runs queued goal")
@@ -315,20 +317,20 @@ class PlanQuickViewOverlay(Vertical):
315
317
  show_enter_hint = bool(can_run_queued())
316
318
  elapsed: str | None = None
317
319
  prefix: Content | None = None
318
- intake: str | None = None
320
+ task_complexity: str | None = None
319
321
  tokens: str | None = None
320
322
  with suppress(Exception):
321
323
  elapsed = tree.loop_elapsed_label()
322
324
  with suppress(Exception):
323
325
  prefix = tree.plan_panel_prefix_content()
324
- intake = tree.intake_label()
326
+ task_complexity = tree.task_complexity()
325
327
  with suppress(Exception):
326
328
  tokens = tree.goal_token_suffix()
327
329
  self._header.update(
328
330
  _plan_quick_view_header(
329
331
  getattr(self.app, "_lc_loop_id", None),
330
332
  prefix=prefix,
331
- intake=intake,
333
+ task_complexity=task_complexity,
332
334
  show_enter_hint=show_enter_hint,
333
335
  elapsed=elapsed,
334
336
  tokens=tokens,
File without changes
File without changes
File without changes