webbee 0.7.37__tar.gz → 0.7.39__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 (222) hide show
  1. {webbee-0.7.37 → webbee-0.7.39}/CHANGELOG.md +12 -0
  2. {webbee-0.7.37 → webbee-0.7.39}/PKG-INFO +3 -3
  3. {webbee-0.7.37 → webbee-0.7.39}/pyproject.toml +3 -3
  4. webbee-0.7.39/src/webbee/__init__.py +1 -0
  5. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/account.py +2 -0
  6. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/i18n.py +2 -0
  7. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/render.py +19 -2
  8. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/repl.py +18 -3
  9. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/session.py +73 -15
  10. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/stream.py +4 -1
  11. {webbee-0.7.37 → webbee-0.7.39}/tests/test_account.py +6 -13
  12. {webbee-0.7.37 → webbee-0.7.39}/tests/test_grid_golden.py +47 -0
  13. webbee-0.7.39/tests/test_guide_and_semantic_ux.py +637 -0
  14. {webbee-0.7.37 → webbee-0.7.39}/tests/test_session.py +133 -3
  15. {webbee-0.7.37 → webbee-0.7.39}/tests/test_stream.py +46 -0
  16. {webbee-0.7.37 → webbee-0.7.39}/uv.lock +9 -9
  17. webbee-0.7.37/src/webbee/__init__.py +0 -1
  18. webbee-0.7.37/tests/test_guide_and_semantic_ux.py +0 -353
  19. {webbee-0.7.37 → webbee-0.7.39}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  20. {webbee-0.7.37 → webbee-0.7.39}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  21. {webbee-0.7.37 → webbee-0.7.39}/.github/pull_request_template.md +0 -0
  22. {webbee-0.7.37 → webbee-0.7.39}/.github/workflows/os-check.yml +0 -0
  23. {webbee-0.7.37 → webbee-0.7.39}/.github/workflows/publish.yml +0 -0
  24. {webbee-0.7.37 → webbee-0.7.39}/.gitignore +0 -0
  25. {webbee-0.7.37 → webbee-0.7.39}/LICENSE +0 -0
  26. {webbee-0.7.37 → webbee-0.7.39}/PRIVACY.md +0 -0
  27. {webbee-0.7.37 → webbee-0.7.39}/README.md +0 -0
  28. {webbee-0.7.37 → webbee-0.7.39}/SECURITY.md +0 -0
  29. {webbee-0.7.37 → webbee-0.7.39}/assets/architecture.png +0 -0
  30. {webbee-0.7.37 → webbee-0.7.39}/assets/demo.gif +0 -0
  31. {webbee-0.7.37 → webbee-0.7.39}/assets/hero.png +0 -0
  32. {webbee-0.7.37 → webbee-0.7.39}/assets/social-preview.png +0 -0
  33. {webbee-0.7.37 → webbee-0.7.39}/ci/__init__.py +0 -0
  34. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/__init__.py +0 -0
  35. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/drivers.py +0 -0
  36. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/fixture.py +0 -0
  37. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/fixture_long.py +0 -0
  38. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/fixture_wait.py +0 -0
  39. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/provision_user.py +0 -0
  40. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/registry.py +0 -0
  41. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/replay.py +0 -0
  42. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/run.py +0 -0
  43. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/scenarios_account.py +0 -0
  44. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/scenarios_code.py +0 -0
  45. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/scenarios_contract.py +0 -0
  46. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/scenarios_long.py +0 -0
  47. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/scenarios_wait.py +0 -0
  48. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/test_drivers.py +0 -0
  49. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/test_fixture.py +0 -0
  50. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/test_fixture_long.py +0 -0
  51. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/test_fixture_wait.py +0 -0
  52. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/test_registry.py +0 -0
  53. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/test_replay.py +0 -0
  54. {webbee-0.7.37 → webbee-0.7.39}/ci/field_gate/wipe.py +0 -0
  55. {webbee-0.7.37 → webbee-0.7.39}/ci/os_check.py +0 -0
  56. {webbee-0.7.37 → webbee-0.7.39}/dev-webbee +0 -0
  57. {webbee-0.7.37 → webbee-0.7.39}/install.sh +0 -0
  58. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/__main__.py +0 -0
  59. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/_launch.py +0 -0
  60. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/active_sessions.py +0 -0
  61. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/autoupdate.py +0 -0
  62. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/banner_art.py +0 -0
  63. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/blocks.py +0 -0
  64. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/boot.py +0 -0
  65. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/browser.py +0 -0
  66. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/checkpoints.py +0 -0
  67. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/cli.py +0 -0
  68. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/clipboard.py +0 -0
  69. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/clipboard_read.py +0 -0
  70. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/clipboard_session.py +0 -0
  71. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/coding_context.py +0 -0
  72. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/commands.py +0 -0
  73. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/config.py +0 -0
  74. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/consent.py +0 -0
  75. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/details.py +0 -0
  76. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/events.py +0 -0
  77. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/expand.py +0 -0
  78. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/frames.py +0 -0
  79. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/home.py +0 -0
  80. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/home_view.py +0 -0
  81. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/http.py +0 -0
  82. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/instance_lock.py +0 -0
  83. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/intel/__init__.py +0 -0
  84. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/intel/graph.py +0 -0
  85. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/intel/outline.py +0 -0
  86. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/intel/query.py +0 -0
  87. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/intel/service.py +0 -0
  88. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/intel/store.py +0 -0
  89. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/intel/tree.py +0 -0
  90. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/intel/watch.py +0 -0
  91. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/jobs.py +0 -0
  92. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/jobs_panel.py +0 -0
  93. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/jobwatch.py +0 -0
  94. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/loop_errors.py +0 -0
  95. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/media.py +0 -0
  96. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/modals.py +0 -0
  97. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/mode_store.py +0 -0
  98. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/native_files.py +0 -0
  99. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/native_read.py +0 -0
  100. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/newtab_mode.py +0 -0
  101. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/output_pane.py +0 -0
  102. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/prefs.py +0 -0
  103. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/pricing_constants.py +0 -0
  104. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/queue_panel.py +0 -0
  105. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/reflow.py +0 -0
  106. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/remote.py +0 -0
  107. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/repo.py +0 -0
  108. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/selection.py +0 -0
  109. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/sessions.py +0 -0
  110. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/sizing.py +0 -0
  111. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/slots.py +0 -0
  112. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/stallwatch.py +0 -0
  113. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/steer.py +0 -0
  114. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/tab_store.py +0 -0
  115. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/tabs.py +0 -0
  116. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/thread.py +0 -0
  117. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/tier_store.py +0 -0
  118. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/todo_panel.py +0 -0
  119. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/tokens.py +0 -0
  120. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/tools.py +0 -0
  121. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/tui.py +0 -0
  122. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/ui_tokens.py +0 -0
  123. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/update.py +0 -0
  124. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/urlopen.py +0 -0
  125. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/wallet.py +0 -0
  126. {webbee-0.7.37 → webbee-0.7.39}/src/webbee/worktrees.py +0 -0
  127. {webbee-0.7.37 → webbee-0.7.39}/tests/__init__.py +0 -0
  128. {webbee-0.7.37 → webbee-0.7.39}/tests/conftest.py +0 -0
  129. {webbee-0.7.37 → webbee-0.7.39}/tests/test_active_sessions.py +0 -0
  130. {webbee-0.7.37 → webbee-0.7.39}/tests/test_answer_delta.py +0 -0
  131. {webbee-0.7.37 → webbee-0.7.39}/tests/test_append_file.py +0 -0
  132. {webbee-0.7.37 → webbee-0.7.39}/tests/test_audit_2026_07_25_findings.py +0 -0
  133. {webbee-0.7.37 → webbee-0.7.39}/tests/test_autoupdate.py +0 -0
  134. {webbee-0.7.37 → webbee-0.7.39}/tests/test_blocks.py +0 -0
  135. {webbee-0.7.37 → webbee-0.7.39}/tests/test_checkpoints.py +0 -0
  136. {webbee-0.7.37 → webbee-0.7.39}/tests/test_checkpoints_nested_1030.py +0 -0
  137. {webbee-0.7.37 → webbee-0.7.39}/tests/test_cli.py +0 -0
  138. {webbee-0.7.37 → webbee-0.7.39}/tests/test_clipboard.py +0 -0
  139. {webbee-0.7.37 → webbee-0.7.39}/tests/test_clipboard_read.py +0 -0
  140. {webbee-0.7.37 → webbee-0.7.39}/tests/test_code_map_fresh.py +0 -0
  141. {webbee-0.7.37 → webbee-0.7.39}/tests/test_coding_context.py +0 -0
  142. {webbee-0.7.37 → webbee-0.7.39}/tests/test_commands.py +0 -0
  143. {webbee-0.7.37 → webbee-0.7.39}/tests/test_config.py +0 -0
  144. {webbee-0.7.37 → webbee-0.7.39}/tests/test_cpc_contract_stable.py +0 -0
  145. {webbee-0.7.37 → webbee-0.7.39}/tests/test_cpc_outline.py +0 -0
  146. {webbee-0.7.37 → webbee-0.7.39}/tests/test_cross_loop_token.py +0 -0
  147. {webbee-0.7.37 → webbee-0.7.39}/tests/test_details.py +0 -0
  148. {webbee-0.7.37 → webbee-0.7.39}/tests/test_events.py +0 -0
  149. {webbee-0.7.37 → webbee-0.7.39}/tests/test_expand.py +0 -0
  150. {webbee-0.7.37 → webbee-0.7.39}/tests/test_field_test_1113.py +0 -0
  151. {webbee-0.7.37 → webbee-0.7.39}/tests/test_freeze_fix.py +0 -0
  152. {webbee-0.7.37 → webbee-0.7.39}/tests/test_home.py +0 -0
  153. {webbee-0.7.37 → webbee-0.7.39}/tests/test_home_view.py +0 -0
  154. {webbee-0.7.37 → webbee-0.7.39}/tests/test_home_view_mouse.py +0 -0
  155. {webbee-0.7.37 → webbee-0.7.39}/tests/test_i18n.py +0 -0
  156. {webbee-0.7.37 → webbee-0.7.39}/tests/test_inspect_page.py +0 -0
  157. {webbee-0.7.37 → webbee-0.7.39}/tests/test_instance_lock.py +0 -0
  158. {webbee-0.7.37 → webbee-0.7.39}/tests/test_intel_any_folder.py +0 -0
  159. {webbee-0.7.37 → webbee-0.7.39}/tests/test_intel_cache_and_sync_worker.py +0 -0
  160. {webbee-0.7.37 → webbee-0.7.39}/tests/test_intel_checksum_tree.py +0 -0
  161. {webbee-0.7.37 → webbee-0.7.39}/tests/test_intel_chunker.py +0 -0
  162. {webbee-0.7.37 → webbee-0.7.39}/tests/test_intel_embed.py +0 -0
  163. {webbee-0.7.37 → webbee-0.7.39}/tests/test_intel_folder_1106.py +0 -0
  164. {webbee-0.7.37 → webbee-0.7.39}/tests/test_intel_graph.py +0 -0
  165. {webbee-0.7.37 → webbee-0.7.39}/tests/test_intel_no_numpy.py +0 -0
  166. {webbee-0.7.37 → webbee-0.7.39}/tests/test_intel_query.py +0 -0
  167. {webbee-0.7.37 → webbee-0.7.39}/tests/test_intel_service.py +0 -0
  168. {webbee-0.7.37 → webbee-0.7.39}/tests/test_intel_store.py +0 -0
  169. {webbee-0.7.37 → webbee-0.7.39}/tests/test_intel_watch.py +0 -0
  170. {webbee-0.7.37 → webbee-0.7.39}/tests/test_jobs_1127.py +0 -0
  171. {webbee-0.7.37 → webbee-0.7.39}/tests/test_launch.py +0 -0
  172. {webbee-0.7.37 → webbee-0.7.39}/tests/test_loop_errors.py +0 -0
  173. {webbee-0.7.37 → webbee-0.7.39}/tests/test_marathon.py +0 -0
  174. {webbee-0.7.37 → webbee-0.7.39}/tests/test_modals_e2e.py +0 -0
  175. {webbee-0.7.37 → webbee-0.7.39}/tests/test_mode_and_remote_0_6_8.py +0 -0
  176. {webbee-0.7.37 → webbee-0.7.39}/tests/test_mode_store.py +0 -0
  177. {webbee-0.7.37 → webbee-0.7.39}/tests/test_native_files.py +0 -0
  178. {webbee-0.7.37 → webbee-0.7.39}/tests/test_newtab_mode.py +0 -0
  179. {webbee-0.7.37 → webbee-0.7.39}/tests/test_packaging.py +0 -0
  180. {webbee-0.7.37 → webbee-0.7.39}/tests/test_probe_cost.py +0 -0
  181. {webbee-0.7.37 → webbee-0.7.39}/tests/test_queue_manage_0337.py +0 -0
  182. {webbee-0.7.37 → webbee-0.7.39}/tests/test_read_never_waits_for_the_repo.py +0 -0
  183. {webbee-0.7.37 → webbee-0.7.39}/tests/test_reflow.py +0 -0
  184. {webbee-0.7.37 → webbee-0.7.39}/tests/test_remote_code_reads.py +0 -0
  185. {webbee-0.7.37 → webbee-0.7.39}/tests/test_render.py +0 -0
  186. {webbee-0.7.37 → webbee-0.7.39}/tests/test_repl.py +0 -0
  187. {webbee-0.7.37 → webbee-0.7.39}/tests/test_repo.py +0 -0
  188. {webbee-0.7.37 → webbee-0.7.39}/tests/test_resilient_http.py +0 -0
  189. {webbee-0.7.37 → webbee-0.7.39}/tests/test_result_fits_the_door.py +0 -0
  190. {webbee-0.7.37 → webbee-0.7.39}/tests/test_review_fixes_1030.py +0 -0
  191. {webbee-0.7.37 → webbee-0.7.39}/tests/test_session_review_1030.py +0 -0
  192. {webbee-0.7.37 → webbee-0.7.39}/tests/test_sessions.py +0 -0
  193. {webbee-0.7.37 → webbee-0.7.39}/tests/test_sizing.py +0 -0
  194. {webbee-0.7.37 → webbee-0.7.39}/tests/test_slots.py +0 -0
  195. {webbee-0.7.37 → webbee-0.7.39}/tests/test_ssh_guard.py +0 -0
  196. {webbee-0.7.37 → webbee-0.7.39}/tests/test_stallwatch.py +0 -0
  197. {webbee-0.7.37 → webbee-0.7.39}/tests/test_steer.py +0 -0
  198. {webbee-0.7.37 → webbee-0.7.39}/tests/test_tab_bar_stability.py +0 -0
  199. {webbee-0.7.37 → webbee-0.7.39}/tests/test_tab_restore_0337.py +0 -0
  200. {webbee-0.7.37 → webbee-0.7.39}/tests/test_tabs.py +0 -0
  201. {webbee-0.7.37 → webbee-0.7.39}/tests/test_terminal_ux_0336.py +0 -0
  202. {webbee-0.7.37 → webbee-0.7.39}/tests/test_thread.py +0 -0
  203. {webbee-0.7.37 → webbee-0.7.39}/tests/test_tier_invalidation.py +0 -0
  204. {webbee-0.7.37 → webbee-0.7.39}/tests/test_tier_store.py +0 -0
  205. {webbee-0.7.37 → webbee-0.7.39}/tests/test_todo_panel.py +0 -0
  206. {webbee-0.7.37 → webbee-0.7.39}/tests/test_tokens.py +0 -0
  207. {webbee-0.7.37 → webbee-0.7.39}/tests/test_tool_ack.py +0 -0
  208. {webbee-0.7.37 → webbee-0.7.39}/tests/test_tools.py +0 -0
  209. {webbee-0.7.37 → webbee-0.7.39}/tests/test_tools_eol_cancel_1030.py +0 -0
  210. {webbee-0.7.37 → webbee-0.7.39}/tests/test_tools_vision_websearch.py +0 -0
  211. {webbee-0.7.37 → webbee-0.7.39}/tests/test_tray_1126.py +0 -0
  212. {webbee-0.7.37 → webbee-0.7.39}/tests/test_tui.py +0 -0
  213. {webbee-0.7.37 → webbee-0.7.39}/tests/test_tui_hardening.py +0 -0
  214. {webbee-0.7.37 → webbee-0.7.39}/tests/test_ui_tokens.py +0 -0
  215. {webbee-0.7.37 → webbee-0.7.39}/tests/test_update.py +0 -0
  216. {webbee-0.7.37 → webbee-0.7.39}/tests/test_update_badge_0340.py +0 -0
  217. {webbee-0.7.37 → webbee-0.7.39}/tests/test_urlopen.py +0 -0
  218. {webbee-0.7.37 → webbee-0.7.39}/tests/test_version.py +0 -0
  219. {webbee-0.7.37 → webbee-0.7.39}/tests/test_version_badge_corner.py +0 -0
  220. {webbee-0.7.37 → webbee-0.7.39}/tests/test_voice_outcome.py +0 -0
  221. {webbee-0.7.37 → webbee-0.7.39}/tests/test_wallet.py +0 -0
  222. {webbee-0.7.37 → webbee-0.7.39}/tests/test_worktrees.py +0 -0
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.39
4
+
5
+ * Direct turn start: send `"start_now": true` in `POST /v1/agent/sessions` so the gateway starts the workflow immediately instead of waiting for the first SSE connect (backward-compatible with older gateways).
6
+ * Shared keep-alive HTTP client in `AgentSession`: reuse the REPL's shared `httpx.AsyncClient` across `POST /v1/agent/sessions`, SSE streaming (with per-request `read=None` timeout), tool ack/result, mode switch, and stop to eliminate repeated TCP+TLS handshakes.
7
+
8
+ ## 0.7.38
9
+
10
+ * First-words latency in turn footer: displays time to first visible words (`first X.Xs` / `отклик X.Xс`, compact `X.Xs/Y.Ys` on narrow terminals) alongside total turn duration, triggered by the first inline Guide remark or `answer_delta` chunk.
11
+ * Complete Guide & tier provenance on marathon turns: preserves `answered_by` and `model_tier` on `marathon_complete` and `marathon_paused` (including held milestone finals), adds localized `ack_steer` header badge (`got it` / `приняла`), and covers `k89`–`k92` flows with unit and golden tests across 60/80/120 columns.
12
+ * Faster turn start (~0.9s saved per turn): extracts `imperal_id` into `Account` from boot `/v1/auth/me`, caches it on `AgentSession`, passes it from slot creation, and clears/refreshes the cache on `/logout` and `/login` instead of issuing a fresh `whoami()` HTTP call on every turn.
13
+ * Dependency bump: requires `imperal-mcp>=0.9.25` and `imperal-sdk[universal-index]>=6.16.0` for structured agent thread parameters (`reply_to`, `about`, `expects`) in `message_session`.
14
+
3
15
  ## 0.7.37
4
16
 
5
17
  * Inline Guide speech (`guide_inline`): renders live Guide remarks (`opening`, `beat`, `ack_steer`) directly inside the
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: webbee
3
- Version: 0.7.37
3
+ Version: 0.7.39
4
4
  Summary: Webbee 🐝 — the Imperal Cloud coding agent in your terminal
5
5
  Project-URL: Homepage, https://imperal.io/webbee-code
6
6
  Project-URL: Documentation, https://docs.imperal.io
@@ -31,8 +31,8 @@ Requires-Python: >=3.7
31
31
  Requires-Dist: asyncssh>=2.14; python_version >= '3.10'
32
32
  Requires-Dist: httpx-sse>=0.4; python_version >= '3.10'
33
33
  Requires-Dist: httpx>=0.27; python_version >= '3.10'
34
- Requires-Dist: imperal-mcp>=0.9.24; python_version >= '3.10'
35
- Requires-Dist: imperal-sdk[universal-index]>=6.14.0; python_version >= '3.10'
34
+ Requires-Dist: imperal-mcp>=0.9.25; python_version >= '3.10'
35
+ Requires-Dist: imperal-sdk[universal-index]>=6.16.0; python_version >= '3.10'
36
36
  Requires-Dist: pillow>=10; python_version >= '3.10'
37
37
  Requires-Dist: prompt-toolkit>=3; python_version >= '3.10'
38
38
  Requires-Dist: rich>=13.7; python_version >= '3.10'
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "webbee"
3
- version = "0.7.37"
3
+ version = "0.7.39"
4
4
  description = "Webbee 🐝 — the Imperal Cloud coding agent in your terminal"
5
5
  readme = "README.md"
6
6
  license = "GPL-3.0-or-later"
@@ -13,8 +13,8 @@ dependencies = [
13
13
  # release on a Python 3.12 it sets up once with uv -- `uv` comes as a wheel on 3.8+,
14
14
  # 3.7 fetches it with uv's own installer.
15
15
  'uv>=0.4; python_version >= "3.8" and python_version < "3.10"',
16
- 'imperal-mcp>=0.9.24; python_version >= "3.10"', # raised to the newest at each release
17
- 'imperal-sdk[universal-index]>=6.14.0; python_version >= "3.10"',
16
+ 'imperal-mcp>=0.9.25; python_version >= "3.10"', # raised to the newest at each release
17
+ 'imperal-sdk[universal-index]>=6.16.0; python_version >= "3.10"',
18
18
  'asyncssh>=2.14; python_version >= "3.10"',
19
19
  'httpx>=0.27; python_version >= "3.10"',
20
20
  'httpx-sse>=0.4; python_version >= "3.10"',
@@ -0,0 +1 @@
1
+ __version__ = "0.7.39"
@@ -14,6 +14,7 @@ class Account:
14
14
  dev_tier: str = ""
15
15
  member_since: str = ""
16
16
  lang: str = ""
17
+ imperal_id: str = ""
17
18
 
18
19
 
19
20
  def _fmt_month(iso: str) -> str:
@@ -101,4 +102,5 @@ async def fetch_account(cfg, token_provider, *, get=None) -> Account:
101
102
  dev_tier=str(dev.get("tier", "") or attrs.get("developer_tier", "") or ""),
102
103
  member_since=_fmt_month(str(me.get("created_at", "") or dev.get("registered_at", "") or "")),
103
104
  lang=str(raw_lang or ""),
105
+ imperal_id=str(me.get("imperal_id") or me.get("id") or ""),
104
106
  )
@@ -101,6 +101,7 @@ _CATALOG: dict[str, dict[str, str]] = {
101
101
  "footer_tokens": "{tokens} tok",
102
102
  "footer_credits": "{credits} cr",
103
103
  "footer_session": "session {tokens} tok",
104
+ "footer_first_words": "first {first}",
104
105
  "duration_ms": "{ms}ms",
105
106
  "duration_s": "{s}s",
106
107
  # Welcome banner
@@ -222,6 +223,7 @@ _CATALOG: dict[str, dict[str, str]] = {
222
223
  "footer_tokens": "{tokens} ток",
223
224
  "footer_credits": "{credits} кр",
224
225
  "footer_session": "сессия {tokens} ток",
226
+ "footer_first_words": "отклик {first}",
225
227
  "duration_ms": "{ms}мс",
226
228
  "duration_s": "{s}с",
227
229
  # Welcome banner
@@ -623,6 +623,8 @@ class RichSink:
623
623
  def begin_turn(self) -> None:
624
624
  self._tools = 0
625
625
  self._started = self._clock()
626
+ self._first_words_at: float | None = None
627
+ self._last_first_words_s: float | None = None
626
628
  self._current = ""
627
629
  self._pending = ("", "")
628
630
  self.tokens = 0 # per-turn live counters (usage frames are per-turn cumulative)
@@ -724,6 +726,12 @@ class RichSink:
724
726
  self.console.print(Copyable(header, final_text.strip()))
725
727
  self.console.print(Padding(Markdown(final_text), (0, 0, 0, 4)))
726
728
  elapsed = self._elapsed()
729
+ _first_at = getattr(self, "_first_words_at", None)
730
+ self._first_words_at = None
731
+ _first_s: float | None = None
732
+ if _first_at is not None and self._started is not None:
733
+ _first_s = max(0.0, min(elapsed, float(_first_at) - float(self._started)))
734
+ self._last_first_words_s = _first_s
727
735
  self.session_tokens += self.tokens
728
736
  self.session_credits += self.credits
729
737
  elapsed_str = i18n.fmt_elapsed(elapsed, lang=lang)
@@ -738,8 +746,13 @@ class RichSink:
738
746
  else ""
739
747
  )
740
748
 
741
- wide_parts = [elapsed_str, actions_wide, tok_str]
742
- narrow_parts = [elapsed_str, actions_narrow, tok_str]
749
+ if _first_s is not None:
750
+ first_str = i18n.fmt_elapsed(_first_s, lang=lang)
751
+ wide_parts = [i18n.t("footer_first_words", lang=lang, first=first_str), elapsed_str, actions_wide, tok_str]
752
+ narrow_parts = [f"{first_str}/{elapsed_str}", actions_narrow, tok_str]
753
+ else:
754
+ wide_parts = [elapsed_str, actions_wide, tok_str]
755
+ narrow_parts = [elapsed_str, actions_narrow, tok_str]
743
756
  if cr_str:
744
757
  wide_parts.append(cr_str)
745
758
  narrow_parts.append(cr_str)
@@ -1224,6 +1237,8 @@ class RichSink:
1224
1237
  clean = _clean(text).strip()
1225
1238
  if not clean:
1226
1239
  return
1240
+ if getattr(self, "_first_words_at", None) is None and getattr(self, "_started", None) is not None:
1241
+ self._first_words_at = self._clock()
1227
1242
  seen = getattr(self, "_guide_lines_seen", None)
1228
1243
  if not isinstance(seen, list):
1229
1244
  seen = []
@@ -1286,6 +1301,8 @@ class RichSink:
1286
1301
  clean = _clean(text)
1287
1302
  if not clean:
1288
1303
  return
1304
+ if clean.strip() and getattr(self, "_first_words_at", None) is None and getattr(self, "_started", None) is not None:
1305
+ self._first_words_at = self._clock()
1289
1306
  self._live_answer += clean
1290
1307
  pane = self._output_pane()
1291
1308
  if pane is not None:
@@ -812,7 +812,8 @@ async def _check_update_bg(update_state: dict, *, invalidate=None,
812
812
 
813
813
  async def _finish_slot(cfg, token_provider, workspace, mode, *, resources: WorkspaceResources,
814
814
  agent_factory, intel_factory, shadow_factory, pane, sink, first: bool,
815
- account, slot_id: str = "", label: "str | None" = None) -> "tuple[SessionSlot, int]":
815
+ account, slot_id: str = "", label: "str | None" = None,
816
+ shared_client=None) -> "tuple[SessionSlot, int]":
816
817
  """Shared tail of slot construction -- the dock's `_make_session_slot` AND
817
818
  the headless fallback loop both fall into this once they have their own
818
819
  pane (or None, fallback has no dock) + sink: resolve/boot the per-
@@ -836,7 +837,12 @@ async def _finish_slot(cfg, token_provider, workspace, mode, *, resources: Works
836
837
  bundle = await _resources_bundle(cfg, workspace, resources, intel_factory, shadow_factory)
837
838
  factory = _resolve_agent_factory(agent_factory, bundle)
838
839
  agent = factory(cfg, token_provider, workspace, mode)
840
+ if shared_client is not None and getattr(agent, "_client", None) is None:
841
+ agent._client = shared_client
839
842
  agent.slot_id = slot_id
843
+ _acct_iid = str(getattr(account, "imperal_id", "") or "")
844
+ if _acct_iid and not getattr(agent, "_imperal_id", ""):
845
+ agent._imperal_id = _acct_iid
840
846
  # webbee-code-model-tier-slash-command-v1: resume this repo's remembered
841
847
  # tier (git-remote-keyed, same cache dir/convention as mode_store) --
842
848
  # "" (no file / never chosen) means "server admin default", same as
@@ -1003,7 +1009,8 @@ async def _make_session_slot(cfg, token_provider, workspace, mode, *, resources:
1003
1009
  resources=resources, agent_factory=agent_factory,
1004
1010
  intel_factory=intel_factory, shadow_factory=shadow_factory,
1005
1011
  pane=pane, sink=sink, first=first, account=account,
1006
- slot_id=slot_id, label=label)
1012
+ slot_id=slot_id, label=label,
1013
+ shared_client=shared_client)
1007
1014
  slot.instance_lock = lock
1008
1015
  if lock_note:
1009
1016
  sink.note(lock_note)
@@ -1329,6 +1336,10 @@ async def run_repl(cfg, mode: str = "default", *, once: bool = False, sink=None,
1329
1336
  return "continue"
1330
1337
  email = "(signed in)" # the tokens are saved: only what came after them failed
1331
1338
  state["logged_in"] = True
1339
+ for _s in slots.slots:
1340
+ _ag = getattr(_s, "agent", None)
1341
+ if _ag is not None and hasattr(_ag, "clear_identity"):
1342
+ _ag.clear_identity()
1332
1343
  _say(slot, f"Signed in as {email}.")
1333
1344
  # what boot filled while signed out (Home's account, wallet, sessions) is filled again now, not after
1334
1345
  # its 5-minute staleness
@@ -1339,6 +1350,10 @@ async def run_repl(cfg, mode: str = "default", *, once: bool = False, sink=None,
1339
1350
  if res.action == "logout":
1340
1351
  await auth.logout(cfg)
1341
1352
  state["logged_in"] = False
1353
+ for _s in slots.slots:
1354
+ _ag = getattr(_s, "agent", None)
1355
+ if _ag is not None and hasattr(_ag, "clear_identity"):
1356
+ _ag.clear_identity()
1342
1357
  _say(slot, "Signed out, local credentials removed.")
1343
1358
  return "continue"
1344
1359
  if res.action == "sessions":
@@ -2422,7 +2437,7 @@ async def run_repl(cfg, mode: str = "default", *, once: bool = False, sink=None,
2422
2437
  cfg, token_provider, workspace, mode, resources=resources,
2423
2438
  agent_factory=agent_factory, intel_factory=intel_factory,
2424
2439
  shadow_factory=shadow_factory, pane=None, sink=sink,
2425
- first=True, account=account)
2440
+ first=True, account=account, shared_client=shared_client)
2426
2441
  slots.add(fallback_slot)
2427
2442
  _spawn_slot_poller(fallback_slot)
2428
2443
  try:
@@ -325,7 +325,8 @@ class AgentSession:
325
325
  so context carries across turns). Persistent signal-based sessions are P3."""
326
326
 
327
327
  def __init__(self, cfg, token_provider, workspace_root: str, mode: str = "default", intel=None,
328
- shadow=None, slot_id: str = "", model_tier: str = "") -> None:
328
+ shadow=None, slot_id: str = "", model_tier: str = "", imperal_id: str = "",
329
+ client=None) -> None:
329
330
  self.cfg = cfg
330
331
  self.token_provider = token_provider
331
332
  self.workspace_root = workspace_root
@@ -342,6 +343,12 @@ class AgentSession:
342
343
  self._executor = None # the running turn's LocalToolExecutor -- stop() kills its commands
343
344
  self._intel = intel # IntelService, or None (base install / boot failure)
344
345
  self._shadow = shadow # ShadowGit, or None (git unavailable / boot failure)
346
+ # Cached imperal_id avoids a redundant GET /v1/auth/me (~0.9s) before every turn;
347
+ # seeded from Account on first tab and cleared on /logout or /login.
348
+ self._imperal_id: str = str(imperal_id or "")
349
+ # Optional shared keep-alive httpx.AsyncClient owned by repl.py (0.7.39):
350
+ # reused across turns/doors without closing so TCP+TLS stays warm.
351
+ self._client = client
345
352
  # W4b T5: "" (tab-1 / the fallback loop's only slot) keeps every turn's
346
353
  # POST body byte-identical to before this feature existed -- a later
347
354
  # tab's own short slot_id rides the body as `slot`, and the gateway
@@ -410,9 +417,12 @@ class AgentSession:
410
417
  if not self.session_id or self.cfg is None or self.token_provider is None:
411
418
  return False
412
419
  try:
420
+ import httpx
421
+
413
422
  headers = await self._headers()
414
- async with make_client(self.cfg, timeout=15) as client:
415
- resp = await client.post(f"/v1/agent/sessions/{self.session_id}/{door}", json=body, headers=headers)
423
+ async with self._http_client(timeout=15) as client:
424
+ kw = {"timeout": 15} if isinstance(client, httpx.AsyncClient) else {}
425
+ resp = await client.post(f"/v1/agent/sessions/{self.session_id}/{door}", json=body, headers=headers, **kw)
416
426
  return resp.status_code == 200 and bool((resp.json() or {}).get("ok"))
417
427
  except Exception:
418
428
  return False
@@ -423,9 +433,12 @@ class AgentSession:
423
433
  if not sid or self.cfg is None or self.token_provider is None:
424
434
  return None
425
435
  try:
436
+ import httpx
437
+
426
438
  headers = await self._headers()
427
- async with make_client(self.cfg, timeout=20) as client:
428
- resp = await client.post(f"/v1/agent/sessions/{sid}/jobs/{door}", json=body, headers=headers)
439
+ async with self._http_client(timeout=20) as client:
440
+ kw = {"timeout": 20} if isinstance(client, httpx.AsyncClient) else {}
441
+ resp = await client.post(f"/v1/agent/sessions/{sid}/jobs/{door}", json=body, headers=headers, **kw)
429
442
  got = resp.json() if resp.status_code == 200 else None
430
443
  return got if isinstance(got, dict) else None
431
444
  except Exception:
@@ -504,13 +517,24 @@ class AgentSession:
504
517
  changed the label in the terminal and nothing else."""
505
518
  return await self._post_switch("tier", {"tier": tier})
506
519
 
520
+ def clear_identity(self) -> None:
521
+ """Drop cached imperal_id (called on /logout or /login)."""
522
+ self._imperal_id = ""
523
+
524
+ async def _resolve_imperal_id(self) -> str:
525
+ if self._imperal_id:
526
+ return self._imperal_id
527
+ from imperal_mcp.client import ImperalClient
528
+ iid = await ImperalClient(self.cfg, self.token_provider).whoami()
529
+ self._imperal_id = str(iid or "")
530
+ return self._imperal_id
531
+
507
532
  async def run(self, task: str, sink, *, marathon: bool = False, goal: str = "",
508
533
  surface: str = "", steer_iid: str = "") -> str:
509
534
  import httpx
510
535
  from uuid import uuid4
511
536
 
512
537
  from webbee.tools import LocalToolExecutor
513
- from imperal_mcp.client import ImperalClient
514
538
 
515
539
  # FIX1 (W1 final review): every turn-start POST needs a stable dedup
516
540
  # key. A typed turn mints its own (steer_iid arrives empty); a steer
@@ -545,12 +569,13 @@ class AgentSession:
545
569
  root = coding_context.get("repo_root") or coding_context.get("cwd") or self.workspace_root
546
570
  verify_cmd = await asyncio.to_thread(detect_verify_cmd, root)
547
571
  coding_context = {**coding_context, "verify_cmd": verify_cmd}
548
- imperal_id = await ImperalClient(self.cfg, self.token_provider).whoami()
572
+ imperal_id = await self._resolve_imperal_id()
549
573
  executor = LocalToolExecutor(self.workspace_root, indexer=self._intel,
550
574
  shadow=self._shadow,
551
575
  client_factory=self._file_client_factory())
552
576
 
553
- body = {"user_id": imperal_id, "task": task, "coding_context": coding_context}
577
+ body = {"user_id": imperal_id, "task": task, "coding_context": coding_context,
578
+ "start_now": True}
554
579
  if surface:
555
580
  # Liveness v2 §B: an idle-steer pickup carries the queued item's
556
581
  # origin surface so the kernel adopts it start-path (provenance +
@@ -573,9 +598,10 @@ class AgentSession:
573
598
  body["goal"] = goal
574
599
 
575
600
  headers = await self._headers()
576
- async with make_client(self.cfg, timeout=60) as client: # keepalive: a slept socket dies, never hangs
601
+ async with self._http_client(timeout=60) as client: # keepalive: reuse shared pool or scoped client
602
+ _post_kw = {"timeout": 60.0} if isinstance(client, httpx.AsyncClient) else {}
577
603
  resp = await _transient_retry(lambda: client.post(
578
- "/v1/agent/sessions", json=body, headers=headers))
604
+ "/v1/agent/sessions", json=body, headers=headers, **_post_kw))
579
605
  resp.raise_for_status()
580
606
  _sess = resp.json()
581
607
  session_id = _sess["session_id"]
@@ -615,7 +641,7 @@ class AgentSession:
615
641
  executor = LocalToolExecutor(self.workspace_root, indexer=self._intel,
616
642
  shadow=self._shadow,
617
643
  client_factory=self._file_client_factory())
618
- async with make_client(self.cfg, timeout=60) as client: # keepalive: a slept socket dies, never hangs
644
+ async with self._http_client(timeout=60) as client: # keepalive: reuse shared pool or scoped client
619
645
  return await self._serve_stream(sink, client, session_id, start_id, task_id,
620
646
  executor, marathon=marathon)
621
647
 
@@ -705,6 +731,8 @@ class AgentSession:
705
731
  _last_own = loop.time() # M7: the turn's own last activity
706
732
  _quiet_noted = False
707
733
  _held_final = "" # the newest answer of a marathon turn, shown if a stop follows it
734
+ _held_answered_by = ""
735
+ _held_model_tier = ""
708
736
  self.last_end = "" # how this turn ended, once the kernel says it
709
737
  _got_final = False # True once a terminal final/marathon_complete arrived
710
738
  _answer_turn_seq = None # latest turn_seq seen on answer_delta frames
@@ -1107,6 +1135,8 @@ class AgentSession:
1107
1135
  # does not say): a question waits for the person's reply -- the dock shows it as such
1108
1136
  self.last_end = str(frame.get("end") or "")
1109
1137
  setattr(sink, "_awaits_reply", bool(frame.get("awaits_reply")) or self.last_end == "question")
1138
+ setattr(sink, "_answered_by", str(frame.get("answered_by") or _held_answered_by or "").strip())
1139
+ setattr(sink, "_final_model_tier", str(frame.get("model_tier") or _held_model_tier or "").strip())
1110
1140
  _raw_kn = frame.get("kernel_notes")
1111
1141
  setattr(
1112
1142
  sink,
@@ -1181,6 +1211,8 @@ class AgentSession:
1181
1211
  except Exception:
1182
1212
  pass
1183
1213
  self.last_end = str(frame.get("end") or "brake") # a pause is the kernel's stop
1214
+ setattr(sink, "_answered_by", str(frame.get("answered_by") or _held_answered_by or "").strip())
1215
+ setattr(sink, "_final_model_tier", str(frame.get("model_tier") or _held_model_tier or "").strip())
1184
1216
  # the answer delivered before the stop is the turn's text: the person reads it under the
1185
1217
  # stop line ("" only when the kernel sent none)
1186
1218
  return _held_final
@@ -1195,6 +1227,10 @@ class AgentSession:
1195
1227
  # read of why the work stopped -- it was dropped, and the stop showed as one line with
1196
1228
  # nothing under it (live 2026-11-19: nine stops, each answered by a bare "continue")
1197
1229
  clear_answer_delta(sink)
1230
+ if frame.get("text") or "answered_by" in frame:
1231
+ _held_answered_by = str(frame.get("answered_by") or "").strip()
1232
+ if frame.get("text") or "model_tier" in frame:
1233
+ _held_model_tier = str(frame.get("model_tier") or "").strip()
1198
1234
  _held_final = (_tag + str(frame.get("text") or "")) if frame.get("text") else _held_final
1199
1235
  continue
1200
1236
  # I-VISIBLE-ASSISTANT-QUESTION: stash the kernel's own
@@ -1336,6 +1372,22 @@ class AgentSession:
1336
1372
  except Exception:
1337
1373
  pass
1338
1374
 
1375
+ def _http_client(self, *, timeout: float = 60.0):
1376
+ """Yield the injected keep-alive client without closing it, or open a
1377
+ scoped client for callers/tests that did not supply one."""
1378
+ from contextlib import asynccontextmanager
1379
+
1380
+ @asynccontextmanager
1381
+ async def _scope():
1382
+ shared = getattr(self, "_client", None)
1383
+ if shared is not None:
1384
+ yield shared
1385
+ return
1386
+ async with make_client(self.cfg, timeout=timeout) as client:
1387
+ yield client
1388
+
1389
+ return _scope()
1390
+
1339
1391
  async def stop(self) -> None:
1340
1392
  """P5g: server-side stop for Esc/Ctrl-C. Posts a cancel for the
1341
1393
  in-flight turn so the kernel tears down server-side (not just the
@@ -1348,12 +1400,18 @@ class AgentSession:
1348
1400
  if not self.session_id:
1349
1401
  return
1350
1402
  try:
1351
- import httpx
1352
-
1353
1403
  headers = await self._headers()
1354
- async with httpx.AsyncClient(base_url=self.cfg.api_url, timeout=10) as client:
1355
- await client.post(
1404
+ shared = getattr(self, "_client", None)
1405
+ if shared is not None:
1406
+ await shared.post(
1356
1407
  f"/v1/agent/sessions/{self.session_id}/cancel", headers=headers,
1357
1408
  )
1409
+ else:
1410
+ import httpx
1411
+
1412
+ async with httpx.AsyncClient(base_url=self.cfg.api_url, timeout=10) as client:
1413
+ await client.post(
1414
+ f"/v1/agent/sessions/{self.session_id}/cancel", headers=headers,
1415
+ )
1358
1416
  except Exception:
1359
1417
  pass
@@ -69,9 +69,12 @@ async def stream_frames(client, session_id: str, headers_provider, *,
69
69
  try:
70
70
  headers = await headers_provider() # refresh inside try
71
71
  headers["Last-Event-ID"] = last_id
72
+ sse_kw = {}
73
+ if isinstance(client, httpx.AsyncClient) and getattr(client.timeout, "read", None) is not None:
74
+ sse_kw["timeout"] = httpx.Timeout(connect=10.0, read=None, write=10.0, pool=10.0)
72
75
  async with aconnect_sse(
73
76
  client, "GET", f"/v1/agent/sessions/{session_id}/stream",
74
- headers=headers,
77
+ headers=headers, **sse_kw,
75
78
  ) as event_source:
76
79
  resp = getattr(event_source, "response", None)
77
80
  status = getattr(resp, "status_code", 0) if resp is not None else 0
@@ -21,6 +21,7 @@ def test_full_account():
21
21
  async def get(path): return data[path]
22
22
  a = _run(get)
23
23
  assert a.signed_in and a.email == "v@imperal.io" and a.nickname == "notvallium"
24
+ assert a.imperal_id == "imp_u_1"
24
25
  assert a.plan == "pro" and a.plan_status == "active"
25
26
  assert a.plan_renews == "2026-08-01"
26
27
  assert a.dev_tier == "explorer"
@@ -68,19 +69,11 @@ def test_account_extracts_locale_from_me_and_attributes():
68
69
  assert b.signed_in and b.lang == "en_US"
69
70
 
70
71
 
71
- def test_account_extracts_locale_from_me_and_attributes():
72
- async def get_top(path):
72
+ def test_account_extracts_imperal_id_or_id_fallback():
73
+ async def get_id(path):
73
74
  if path == "/v1/auth/me":
74
- return {"email": "v@imperal.io", "locale": "ru-UA", "attributes": {}}
75
+ return {"id": "imp_u_fallback", "email": "v@imperal.io"}
75
76
  raise RuntimeError("404")
76
77
 
77
- a = _run(get_top)
78
- assert a.signed_in and a.lang == "ru-UA"
79
-
80
- async def get_attr(path):
81
- if path == "/v1/auth/me":
82
- return {"email": "v@imperal.io", "attributes": {"language": "en_US"}}
83
- raise RuntimeError("404")
84
-
85
- b = _run(get_attr)
86
- assert b.signed_in and b.lang == "en_US"
78
+ a = _run(get_id)
79
+ assert a.signed_in and a.imperal_id == "imp_u_fallback"
@@ -1225,6 +1225,53 @@ def test_kernel_card_copyable_and_reflows_60_80_120(monkeypatch):
1225
1225
  assert len(headers) == 1 and cell_len(headers[0]) == w
1226
1226
 
1227
1227
 
1228
+ def test_guide_k89_k92_and_first_words_footer_geometry_60_80_120():
1229
+ """Golden geometry for k89-k92 inline Guide phases (opening/beat/ack_steer) + first-words footer across 60/80/120, ru/en, truecolor/ansi16/none."""
1230
+ for lang in ("ru", "en"):
1231
+ for width in (60, 80, 120):
1232
+ for cmode in ("truecolor", "ansi16", "none"):
1233
+ sink, buf = _make_sink(
1234
+ width=width,
1235
+ lang=lang,
1236
+ mode=cmode,
1237
+ clock_vals=(100.0, 100.6, 101.0, 101.5, 112.4),
1238
+ )
1239
+ sink.begin_turn()
1240
+ sink.guide_say(
1241
+ "Открываю проект и проверяю тесты." if lang == "ru" else "Opening project and checking tests.",
1242
+ phase="opening",
1243
+ )
1244
+ sink.tool_start("read_file", {"path": "webbee/pyproject.toml"})
1245
+ sink.tool_result("read_file", True, "0.7.37")
1246
+ sink.guide_say(
1247
+ "Нашла нужную ветку, проверяю подвал." if lang == "ru" else "Found the branch, checking footer.",
1248
+ phase="beat",
1249
+ )
1250
+ sink.guide_say(
1251
+ "Учла уточнение по марафону." if lang == "ru" else "Noted the marathon clarification.",
1252
+ phase="ack_steer",
1253
+ )
1254
+ sink.usage(2400, 0.03)
1255
+ sink._answered_by = "supersmart"
1256
+ sink._final_model_tier = "supersmart"
1257
+ sink.end_turn("Всё проверено." if lang == "ru" else "All verified.")
1258
+
1259
+ out = _strip_ansi(buf.getvalue())
1260
+ _assert_grid_geometry(out, width)
1261
+ lines = [ln for ln in out.splitlines() if ln.strip()]
1262
+ footer = next(ln for ln in reversed(lines) if ln.startswith(" ─ ") and "SuperSmart" in ln)
1263
+ if width <= 68:
1264
+ assert "/" in footer
1265
+ else:
1266
+ assert ("отклик " if lang == "ru" else "first ") in footer
1267
+ if lang == "ru":
1268
+ assert "приняла" in out
1269
+ for leak in _EN_LEAKS_IN_RU:
1270
+ assert leak not in out, f"EN leak {leak!r} in RU output at width={width}"
1271
+ else:
1272
+ assert "got it" in out
1273
+
1274
+
1228
1275
  def test_final_block_kinds_guard_every_renderer_and_zero_panel():
1229
1276
  import inspect
1230
1277
  import webbee.blocks as blocks_mod