railmux 0.4.2.dev8__tar.gz → 0.4.2.dev10__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 (208) hide show
  1. {railmux-0.4.2.dev8/src/railmux.egg-info → railmux-0.4.2.dev10}/PKG-INFO +1 -1
  2. railmux-0.4.2.dev10/src/railmux/__init__.py +1 -0
  3. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/tmux_ctl.py +86 -0
  4. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/transcript.py +153 -59
  5. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ui/app.py +14 -3
  6. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10/src/railmux.egg-info}/PKG-INFO +1 -1
  7. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_app_codex_placeholder.py +66 -0
  8. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_tmux_ctl.py +43 -0
  9. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_transcript.py +30 -7
  10. railmux-0.4.2.dev8/src/railmux/__init__.py +0 -1
  11. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/LICENSE +0 -0
  12. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/MANIFEST.in +0 -0
  13. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/README.md +0 -0
  14. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/pyproject.toml +0 -0
  15. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/setup.cfg +0 -0
  16. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/__main__.py +0 -0
  17. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/atomic_file.py +0 -0
  18. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/background_index.py +0 -0
  19. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/cli.py +0 -0
  20. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/codex_index.py +0 -0
  21. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/config.py +0 -0
  22. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/config_cli.py +0 -0
  23. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/diagnostic_contract.py +0 -0
  24. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/diagnostics.py +0 -0
  25. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/discovery.py +0 -0
  26. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/display_transport.py +0 -0
  27. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/entrypoint.py +0 -0
  28. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/fast_display_client.py +0 -0
  29. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/fast_display_history.py +0 -0
  30. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/fast_display_input.py +0 -0
  31. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/fast_display_protocol.py +0 -0
  32. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/fast_display_server.py +0 -0
  33. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/favorites.py +0 -0
  34. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/fuzzy.py +0 -0
  35. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/help_workspace.py +0 -0
  36. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/image_paste.py +0 -0
  37. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/launcher.py +0 -0
  38. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/legacy_sessions.py +0 -0
  39. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/local_clipboard.py +0 -0
  40. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/local_open.py +0 -0
  41. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/models.py +0 -0
  42. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/modes.py +0 -0
  43. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/mouse_manager.py +0 -0
  44. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/orphan_marker.py +0 -0
  45. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/pane_surface.py +0 -0
  46. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/path_codec.py +0 -0
  47. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/preview_pager.py +0 -0
  48. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/project_favorites.py +0 -0
  49. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/provider_paths.py +0 -0
  50. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/release_version.py +0 -0
  51. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/remote_config.py +0 -0
  52. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/renames.py +0 -0
  53. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/restart_state.py +0 -0
  54. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/runtime_config.py +0 -0
  55. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/scroll_agent.py +0 -0
  56. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/scroll_manager.py +0 -0
  57. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/selection_isolation.py +0 -0
  58. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/self_update.py +0 -0
  59. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/session_cache.py +0 -0
  60. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/session_index.py +0 -0
  61. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/session_lease.py +0 -0
  62. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/setting_contracts.py +0 -0
  63. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/settings.py +0 -0
  64. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ssh_args.py +0 -0
  65. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ssh_compat.py +0 -0
  66. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ssh_display_diagnostics.py +0 -0
  67. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ssh_doctor.py +0 -0
  68. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ssh_preflight.py +0 -0
  69. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/system_deps.py +0 -0
  70. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/terminal_screen.py +0 -0
  71. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/terminal_status.py +0 -0
  72. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/tmux_binding_manager.py +0 -0
  73. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/tmux_capabilities.py +0 -0
  74. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/tmux_health.py +0 -0
  75. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/tmux_server.py +0 -0
  76. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/tool_panes.py +0 -0
  77. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ui/__init__.py +0 -0
  78. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ui/_widgets.py +0 -0
  79. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ui/keymap.py +0 -0
  80. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ui/modals.py +0 -0
  81. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ui/projects_pane.py +0 -0
  82. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ui/running_pane.py +0 -0
  83. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ui/sessions_pane.py +0 -0
  84. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ui/sidebar.py +0 -0
  85. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ui/statusbar.py +0 -0
  86. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/ui/workspace.py +0 -0
  87. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/windows_attach_relay.py +0 -0
  88. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/windows_bootstrap.py +0 -0
  89. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/windows_install_log.py +0 -0
  90. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/windows_msys2.py +0 -0
  91. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/windows_pacman.py +0 -0
  92. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/windows_paths.py +0 -0
  93. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/windows_tmux_lifecycle.py +0 -0
  94. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux/windows_ui_transition.py +0 -0
  95. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux.egg-info/SOURCES.txt +0 -0
  96. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux.egg-info/dependency_links.txt +0 -0
  97. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux.egg-info/entry_points.txt +0 -0
  98. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux.egg-info/requires.txt +0 -0
  99. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/src/railmux.egg-info/top_level.txt +0 -0
  100. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/app_test_harness.py +0 -0
  101. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_agent_workspace.py +0 -0
  102. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_app_quit.py +0 -0
  103. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_app_restart_restore.py +0 -0
  104. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_app_running_recovery.py +0 -0
  105. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_atomic_file.py +0 -0
  106. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_background_index.py +0 -0
  107. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_claude_continuation.py +0 -0
  108. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_cli.py +0 -0
  109. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_code_map.py +0 -0
  110. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_codex_delete.py +0 -0
  111. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_codex_index.py +0 -0
  112. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_codex_lineage.py +0 -0
  113. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_codex_transcript.py +0 -0
  114. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_config.py +0 -0
  115. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_config_cli.py +0 -0
  116. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_denested_transport_benchmark.py +0 -0
  117. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_diagnostics.py +0 -0
  118. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_discovery.py +0 -0
  119. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_display_transport.py +0 -0
  120. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_fast_display_bootstrap.py +0 -0
  121. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_fast_display_history.py +0 -0
  122. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_fast_display_protocol.py +0 -0
  123. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_fast_display_selection.py +0 -0
  124. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_fast_display_server.py +0 -0
  125. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_fast_display_terminal.py +0 -0
  126. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_focus_highlight.py +0 -0
  127. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_fullscreen_binding.py +0 -0
  128. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_fuzzy.py +0 -0
  129. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_help_agent.py +0 -0
  130. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_help_workspace.py +0 -0
  131. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_history_cleanup.py +0 -0
  132. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_image_paste.py +0 -0
  133. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_keymap.py +0 -0
  134. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_launcher.py +0 -0
  135. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_layout_profile.py +0 -0
  136. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_legacy_sessions.py +0 -0
  137. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_local_clipboard.py +0 -0
  138. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_local_open.py +0 -0
  139. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_modals.py +0 -0
  140. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_mode_selection.py +0 -0
  141. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_modes.py +0 -0
  142. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_mouse_manager.py +0 -0
  143. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_new_project.py +0 -0
  144. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_options.py +0 -0
  145. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_orphan_recovery.py +0 -0
  146. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_pane_surface.py +0 -0
  147. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_path_codec.py +0 -0
  148. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_preview_pager.py +0 -0
  149. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_project_favorites.py +0 -0
  150. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_projects_pane.py +0 -0
  151. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_provider_paths.py +0 -0
  152. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_release_notes.py +0 -0
  153. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_release_version.py +0 -0
  154. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_release_workflow.py +0 -0
  155. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_remote_config.py +0 -0
  156. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_renames.py +0 -0
  157. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_restart_state.py +0 -0
  158. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_running_pane.py +0 -0
  159. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_running_sort.py +0 -0
  160. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_runtime_config.py +0 -0
  161. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_scroll_agent.py +0 -0
  162. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_scroll_manager.py +0 -0
  163. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_selection_isolation.py +0 -0
  164. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_self_update.py +0 -0
  165. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_session_cache.py +0 -0
  166. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_session_index.py +0 -0
  167. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_session_lease.py +0 -0
  168. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_sessions_pane.py +0 -0
  169. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_setting_contracts.py +0 -0
  170. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_settings.py +0 -0
  171. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_sidebar.py +0 -0
  172. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_ssh_args.py +0 -0
  173. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_ssh_compat.py +0 -0
  174. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_ssh_display_benchmark.py +0 -0
  175. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_ssh_display_diagnostics.py +0 -0
  176. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_ssh_doctor.py +0 -0
  177. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_status.py +0 -0
  178. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_statusbar.py +0 -0
  179. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_system_deps.py +0 -0
  180. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_terminal_size.py +0 -0
  181. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_terminal_status.py +0 -0
  182. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_termux_local_touch.py +0 -0
  183. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_tmux_binding_manager.py +0 -0
  184. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_tmux_capabilities.py +0 -0
  185. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_tmux_health.py +0 -0
  186. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_tmux_integration.py +0 -0
  187. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_tmux_server.py +0 -0
  188. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_tmux_status.py +0 -0
  189. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_tool_panes.py +0 -0
  190. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_utf8_state.py +0 -0
  191. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_web_demo_recorder.py +0 -0
  192. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_wheel_smoke.py +0 -0
  193. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_widgets.py +0 -0
  194. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_windows_attach_relay.py +0 -0
  195. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_windows_bootstrap.py +0 -0
  196. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_windows_install_log.py +0 -0
  197. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_windows_msys2.py +0 -0
  198. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_windows_pacman.py +0 -0
  199. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_windows_paths.py +0 -0
  200. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_windows_synchronized_screen.py +0 -0
  201. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_windows_tmux_lifecycle.py +0 -0
  202. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_windows_ui_transition.py +0 -0
  203. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_windows_wrapper_contract.py +0 -0
  204. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tests/test_yolo_prompt.py +0 -0
  205. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tools/denested_transport_benchmark.py +0 -0
  206. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tools/release_notes.py +0 -0
  207. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tools/wheel_smoke.py +0 -0
  208. {railmux-0.4.2.dev8 → railmux-0.4.2.dev10}/tools/windows_archive_smoke.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: railmux
3
- Version: 0.4.2.dev8
3
+ Version: 0.4.2.dev10
4
4
  Summary: Terminal UI to navigate, resume, and start Claude Code and Codex sessions
5
5
  Author-email: Rightglow <zhang.taian@foxmail.com>
6
6
  License-Expression: MIT
@@ -0,0 +1 @@
1
+ __version__ = "0.4.2.dev10"
@@ -567,6 +567,92 @@ def process_tree_rollout_ids(
567
567
  return ids
568
568
 
569
569
 
570
+ def _socket_inodes_for_pid(pid: int) -> set[str]:
571
+ """Inode numbers of the sockets *pid* holds open, as decimal strings."""
572
+ fd_dir = os.path.join("/proc", str(pid), "fd")
573
+ try:
574
+ fds = os.listdir(fd_dir)
575
+ except OSError:
576
+ return set()
577
+ inodes: set[str] = set()
578
+ for fd in fds:
579
+ try:
580
+ target = os.readlink(os.path.join(fd_dir, fd))
581
+ except OSError:
582
+ continue
583
+ if target.startswith("socket:[") and target.endswith("]"):
584
+ inodes.add(target[len("socket:["):-1])
585
+ return inodes
586
+
587
+
588
+ def _unix_socket_peers(inodes: set[str]) -> set[str]:
589
+ """Peer inodes of the connected unix sockets among *inodes*.
590
+
591
+ procfs does not expose unix socket peers, so this asks ``ss``. Each line
592
+ ends with ``<local addr> <local inode> <peer addr> <peer inode>``.
593
+ """
594
+ if not inodes:
595
+ return set()
596
+ try:
597
+ res = subprocess.run(
598
+ ["ss", "-x", "-a", "-H"],
599
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL,
600
+ check=False, timeout=2.0,
601
+ )
602
+ except (OSError, subprocess.SubprocessError):
603
+ return set()
604
+ peers: set[str] = set()
605
+ for line in res.stdout.decode(errors="ignore").splitlines():
606
+ fields = line.split()
607
+ if len(fields) < 4:
608
+ continue
609
+ local, peer = fields[-3], fields[-1]
610
+ if local in inodes and peer.isdigit() and peer != "0":
611
+ peers.add(peer)
612
+ return peers
613
+
614
+
615
+ def daemon_rollout_ids(pid: int, sessions_dir: Path) -> set[str] | None:
616
+ """Rollout UUIDs held by the Codex app-server that *pid*'s tree talks to.
617
+
618
+ Newer Codex TUIs hand their threads to a shared ``codex app-server``
619
+ daemon, which then holds every client's rollout open while the pane's own
620
+ process holds none. Only daemons connected to this process tree over a
621
+ unix socket count, and the result covers all of that daemon's threads, so
622
+ callers must still fence it to rollouts that are new and unclaimed.
623
+ ``None`` means procfs is unavailable.
624
+ """
625
+ if not proc_fs_available():
626
+ return None
627
+ tree = {pid, *descendant_pids(pid)}
628
+ local: set[str] = set()
629
+ for process_id in tree:
630
+ local |= _socket_inodes_for_pid(process_id)
631
+ peers = _unix_socket_peers(local)
632
+ if not peers:
633
+ return set()
634
+ try:
635
+ entries = os.listdir("/proc")
636
+ except OSError:
637
+ return set()
638
+ uid = os.getuid()
639
+ ids: set[str] = set()
640
+ for entry in entries:
641
+ if not entry.isdigit() or int(entry) in tree:
642
+ continue
643
+ try:
644
+ if os.stat(f"/proc/{entry}").st_uid != uid:
645
+ continue
646
+ argv = Path(f"/proc/{entry}/cmdline").read_bytes().split(b"\0")
647
+ except OSError:
648
+ continue
649
+ if b"app-server" not in argv:
650
+ continue
651
+ if _socket_inodes_for_pid(int(entry)) & peers:
652
+ ids |= open_rollout_uuids_for_pid(int(entry), sessions_dir)
653
+ return ids
654
+
655
+
570
656
  def process_tree_has_exact_arg(pid: int, expected: str) -> bool | None:
571
657
  """Whether *pid* or a descendant has an argv element equal to *expected*.
572
658
 
@@ -387,82 +387,178 @@ def _table_cells(line: str) -> list[str]:
387
387
  ]
388
388
 
389
389
 
390
- def _markdown_table(lines: list[str], width: int) -> list[str] | None:
391
- """Draw a markdown table as Claude does: a box whose cells wrap to fit.
390
+ # Claude's table constants: spare columns beside the box, the narrowest
391
+ # column, the most rows a cell may wrap to, and the most body rows shown.
392
+ _TABLE_SPARE = 4
393
+ _TABLE_MIN_COLUMN = 3
394
+ _TABLE_MAX_CELL_ROWS = 4
395
+ _TABLE_MAX_ROWS = 200
396
+
397
+
398
+ def _table_alignments(separator: str, count: int) -> list[str]:
399
+ alignments = []
400
+ for cell in _table_cells(separator):
401
+ if cell.startswith(":") and cell.endswith(":"):
402
+ alignments.append("center")
403
+ elif cell.endswith(":"):
404
+ alignments.append("right")
405
+ else:
406
+ alignments.append("left")
407
+ return (alignments + ["left"] * count)[:count]
408
+
409
+
410
+ def _pad_cell(text: str, width: int, alignment: str) -> str:
411
+ spare = max(0, width - _visible_width(text))
412
+ if alignment == "center":
413
+ return " " * (spare // 2) + text + " " * (spare - spare // 2)
414
+ if alignment == "right":
415
+ return " " * spare + text
416
+ return text + " " * spare
417
+
392
418
 
393
- *lines* holds the header, the separator and the body rows. ``None`` means
394
- the columns cannot fit *width*, and the caller keeps the source text.
419
+ def _markdown_table(lines: list[str], width: int) -> list[str]:
420
+ """Draw a markdown table as Claude does.
421
+
422
+ *lines* holds the header, the separator and the body rows; *width* is the
423
+ message body width, two cells less than Claude's terminal width. Cells
424
+ wrap inside a box, unless a cell needs more than four rows or the box
425
+ is too wide: then each row is listed as ``header: value`` lines.
395
426
  """
396
- header = [
397
- f"{BOLD}{_markdown_inline(cell, bold=True)}{BOLD_OFF}"
398
- for cell in _table_cells(lines[0])
399
- ]
427
+ header = [_markdown_inline(cell) for cell in _table_cells(lines[0])]
400
428
  count = len(header)
429
+ alignments = _table_alignments(lines[1], count)
401
430
  body = []
402
431
  for line in lines[2:]:
403
432
  cells = [_markdown_inline(cell) for cell in _table_cells(line)]
404
433
  body.append((cells + [""] * count)[:count])
405
- # Claude keeps two spare cells beside the borders and padding.
406
- available = width - 3 - 3 * count
407
- if available < 3 * count:
408
- return None
434
+ hidden = max(0, len(body) - _TABLE_MAX_ROWS)
435
+ body = body[:_TABLE_MAX_ROWS]
436
+ columns = width + 2
409
437
  rows = [header, *body]
410
438
  natural = [
411
- max(1, *(_visible_width(row[index]) for row in rows))
412
- for index in range(count)
439
+ max(_TABLE_MIN_COLUMN, *(_visible_width(row[i]) for row in rows))
440
+ for i in range(count)
413
441
  ]
414
- longest_word = [
442
+ minimum = [
415
443
  max(
416
- _visible_width(word)
417
- for row in rows
418
- for word in [*_ESCAPE_RE.sub("", row[index]).split(" "), ""]
444
+ _TABLE_MIN_COLUMN,
445
+ *(
446
+ _visible_width(word)
447
+ for row in rows
448
+ for word in _ESCAPE_RE.sub("", row[i]).split()
449
+ ),
419
450
  )
420
- for index in range(count)
451
+ for i in range(count)
421
452
  ]
422
- minimum = [max(1, min(a, b)) for a, b in zip(natural, longest_word)]
423
- widths = natural
424
- if sum(natural) > available and sum(minimum) <= available:
425
- # Claude's split: every column fits its longest word, and the spare
426
- # cells go to each column in proportion to how much more it wants.
453
+ available = max(
454
+ columns - 1 - 3 * count - _TABLE_SPARE, count * _TABLE_MIN_COLUMN)
455
+ hard = False
456
+ if sum(natural) <= available:
457
+ widths = natural
458
+ elif sum(minimum) <= available:
459
+ # Every column fits its longest word, and the spare cells go to each
460
+ # column in proportion to how much more it wants.
427
461
  spare = available - sum(minimum)
428
- wanted = sum(n - m for n, m in zip(natural, minimum))
462
+ wants = [n - m for n, m in zip(natural, minimum)]
463
+ wanted = sum(wants)
429
464
  widths = [
430
- m + spare * (n - m) // wanted for n, m in zip(natural, minimum)
465
+ m + (int(want / wanted * spare) if wanted else 0)
466
+ for m, want in zip(minimum, wants)
431
467
  ]
432
- elif sum(natural) > available:
433
- low, high = 3, max(natural)
434
- while low < high:
435
- cap = (low + high + 1) // 2
436
- if sum(min(value, cap) for value in natural) <= available:
437
- low = cap
438
- else:
439
- high = cap - 1
440
- widths = [min(value, low) for value in natural]
441
- spare = available - sum(widths)
442
- for index, value in enumerate(natural):
443
- if spare and value > widths[index]:
444
- widths[index] += 1
445
- spare -= 1
468
+ else:
469
+ hard = True
470
+ widths = [
471
+ max(int(m * available / sum(minimum)), _TABLE_MIN_COLUMN)
472
+ for m in minimum
473
+ ]
474
+
475
+ def wrap(cell: str, index: int) -> list[str]:
476
+ if not hard and _visible_width(cell) <= widths[index]:
477
+ return [cell]
478
+ return _close_fragments(_wrap_styled(cell, widths[index], 0))
479
+
480
+ header_cells = [
481
+ wrap(f"{BOLD}{cell}{BOLD_OFF}" if cell else cell, index)
482
+ for index, cell in enumerate(header)
483
+ ]
484
+ body_cells = [
485
+ [wrap(cell, index) for index, cell in enumerate(row)] for row in body
486
+ ]
487
+ tallest = max(
488
+ len(cell) for row in [header_cells, *body_cells] for cell in row)
489
+ if tallest > _TABLE_MAX_CELL_ROWS:
490
+ return _vertical_table(header, body, columns, hidden)
446
491
 
447
492
  def border(left: str, middle: str, right: str) -> str:
448
493
  return left + middle.join("─" * (cell + 2) for cell in widths) + right
449
494
 
450
- rendered = [border("┌", "┬", "┐")]
451
- for row_index, row in enumerate([header, *body]):
452
- if row_index:
453
- rendered.append(border("├", "┼", "┤"))
454
- fragments = [
455
- _close_fragments(_wrap_styled(cell, widths[index], 0))
456
- for index, cell in enumerate(row)
457
- ]
458
- for line_index in range(max(len(cell) for cell in fragments)):
495
+ def box_rows(cells: list[list[str]], heading: bool) -> list[str]:
496
+ height = max(len(cell) for cell in cells)
497
+ out = []
498
+ for line_index in range(height):
459
499
  parts = []
460
- for index, cell in enumerate(fragments):
461
- text = cell[line_index] if line_index < len(cell) else ""
462
- padding = " " * (widths[index] - _visible_width(text))
463
- parts.append(f" {text}{padding} ")
464
- rendered.append("│" + "│".join(parts) + "│")
500
+ for index, cell in enumerate(cells):
501
+ # Short cells sit in the vertical middle of the row.
502
+ at = line_index - (height - len(cell)) // 2
503
+ text = cell[at] if 0 <= at < len(cell) else ""
504
+ alignment = "center" if heading else alignments[index]
505
+ parts.append(f" {_pad_cell(text, widths[index], alignment)} ")
506
+ out.append("│" + "│".join(parts) + "│")
507
+ return out
508
+
509
+ rendered = [border("┌", "┬", "┐"), *box_rows(header_cells, True)]
510
+ for cells in body_cells:
511
+ rendered.append(border("├", "┼", "┤"))
512
+ rendered.extend(box_rows(cells, False))
465
513
  rendered.append(border("└", "┴", "┘"))
514
+ if max(_visible_width(row) for row in rendered) > columns - _TABLE_SPARE:
515
+ return _vertical_table(header, body, columns, hidden)
516
+ if hidden:
517
+ rendered.append(_hidden_rows(hidden))
518
+ return rendered
519
+
520
+
521
+ def _hidden_rows(count: int) -> str:
522
+ return f"… {count:,} more {'row' if count == 1 else 'rows'} not shown"
523
+
524
+
525
+ def _vertical_table(
526
+ header: list[str], body: list[list[str]], columns: int, hidden: int,
527
+ ) -> list[str]:
528
+ """Claude's fallback layout: one ``header: value`` line block per row."""
529
+ labels = [_ESCAPE_RE.sub("", cell).strip() for cell in header]
530
+ if not body:
531
+ labels, body = [""] * len(header), [header]
532
+ rule = "─" * min(columns - 1, 40)
533
+ rendered: list[str] = []
534
+ for row in body:
535
+ block = []
536
+ for label, cell in zip(labels, row):
537
+ value = " ".join(cell.split())
538
+ if not label and not value:
539
+ continue
540
+ first = (
541
+ columns - _visible_width(label) - 3 if label else columns - 1)
542
+ lines = _close_fragments(
543
+ _wrap_styled(value, max(first, 10), 0))
544
+ if len(lines) > 1:
545
+ rest = " ".join(line.strip() for line in lines[1:])
546
+ lines = [
547
+ lines[0],
548
+ *_close_fragments(_wrap_styled(rest, columns - 3, 0)),
549
+ ]
550
+ block.append(
551
+ f"{BOLD}{label}:{BOLD_OFF} {lines[0]}" if label else lines[0])
552
+ block.extend(line for line in lines[1:] if line.strip())
553
+ if not block:
554
+ continue
555
+ if rendered:
556
+ rendered.append(rule)
557
+ rendered.extend(block)
558
+ if hidden:
559
+ if rendered:
560
+ rendered.append(rule)
561
+ rendered.append(_hidden_rows(hidden))
466
562
  return rendered
467
563
 
468
564
 
@@ -520,11 +616,9 @@ def _markdown_lines(lines: list[str], width: int | None = None) -> list[str]:
520
616
  end = index + 1
521
617
  while end < len(lines) and lines[end].lstrip().startswith("|"):
522
618
  end += 1
523
- table = _markdown_table(lines[index - 1:end], width)
524
- if table is not None:
525
- rendered.extend(table)
526
- index = end
527
- continue
619
+ rendered.extend(_markdown_table(lines[index - 1:end], width))
620
+ index = end
621
+ continue
528
622
  heading = _MD_HEADING_RE.match(line)
529
623
  if heading:
530
624
  inner = _markdown_inline(heading.group(2), bold=True)
@@ -10333,9 +10333,20 @@ class App:
10333
10333
  identity = tmux_ctl.pane_identity(real_pane)
10334
10334
  if identity is None:
10335
10335
  return set() if tmux_ctl.proc_fs_available() else None
10336
- return tmux_ctl.process_tree_rollout_ids(
10337
- identity.pane_pid, sessions_dir)
10338
- return tmux_ctl.session_rollout_ids(r.tmux_name, sessions_dir)
10336
+ pane_pid = identity.pane_pid
10337
+ else:
10338
+ pane_pid = tmux_ctl.pane_pid_for_session(r.tmux_name)
10339
+ if pane_pid is None:
10340
+ return set() if tmux_ctl.proc_fs_available() else None
10341
+ ids = tmux_ctl.process_tree_rollout_ids(pane_pid, sessions_dir)
10342
+ if ids:
10343
+ return ids
10344
+ # A Codex TUI backed by a shared app-server daemon holds no
10345
+ # rollout itself; the daemon holds its own and its other clients'
10346
+ # rollouts. The caller fences these to new, unclaimed rollouts in
10347
+ # this cwd and binds only when exactly one remains.
10348
+ daemon_ids = tmux_ctl.daemon_rollout_ids(pane_pid, sessions_dir)
10349
+ return ids if daemon_ids is None else ids | daemon_ids
10339
10350
  except Exception:
10340
10351
  # On a procfs platform an inspection failure is ambiguity, not
10341
10352
  # evidence that procfs is unavailable. Falling back here could
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: railmux
3
- Version: 0.4.2.dev8
3
+ Version: 0.4.2.dev10
4
4
  Summary: Terminal UI to navigate, resume, and start Claude Code and Codex sessions
5
5
  Author-email: Rightglow <zhang.taian@foxmail.com>
6
6
  License-Expression: MIT
@@ -602,6 +602,72 @@ def test_correlate_codex_rollout_follows_swap_displayed_real_pane(monkeypatch):
602
602
  home_probe.assert_not_called()
603
603
 
604
604
 
605
+ def test_correlate_codex_rollout_uses_connected_daemon(monkeypatch):
606
+ """Codex app-server daemons hold rollouts for TUIs that hold none."""
607
+ ours = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
608
+ other = "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
609
+ sessions_dir = Path("/codex/sessions")
610
+ app = App.__new__(App)
611
+ app._codex_home_path = lambda: sessions_dir.parent
612
+ manager = MagicMock()
613
+ manager.displayed_real_pane.return_value = None
614
+ app._display_transport_manager = manager
615
+ running = _Running(
616
+ key="__new__-tok-1",
617
+ tmux_name="cx-new----tok-1",
618
+ label="test-proj/(new)",
619
+ session_type="codex",
620
+ )
621
+ monkeypatch.setattr(tmux_ctl, "pane_pid_for_session", lambda _name: 4242)
622
+ monkeypatch.setattr(
623
+ tmux_ctl, "process_tree_rollout_ids", lambda _pid, _dir: set())
624
+ daemon_probe = MagicMock(return_value={ours, other})
625
+ monkeypatch.setattr(tmux_ctl, "daemon_rollout_ids", daemon_probe)
626
+
627
+ assert app._correlate_codex_rollout(running) == {ours, other}
628
+ daemon_probe.assert_called_once_with(4242, sessions_dir)
629
+
630
+
631
+ def test_resolve_placeholders_binds_the_one_new_daemon_rollout():
632
+ """The daemon also holds other panes' rollouts; claimed ones are fenced."""
633
+ proj = _project()
634
+ ours = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
635
+ other = "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
636
+ app = App.__new__(App)
637
+ app._codex_mode = True
638
+ app._right_pane_claude = None
639
+ app._running = {
640
+ "__new__-tok-1": _Running(
641
+ key="__new__-tok-1",
642
+ tmux_name="cx-new----tok-1",
643
+ label="test-proj/(new)",
644
+ project=proj,
645
+ placeholder_path=proj.real_path,
646
+ created_at=999.0,
647
+ session_type="codex",
648
+ ),
649
+ other: _Running(
650
+ key=other,
651
+ tmux_name="cx-bbbbbbbb-bbbb-bb",
652
+ label="test-proj/other",
653
+ project=proj,
654
+ session_type="codex",
655
+ ),
656
+ }
657
+ app._codex_index = MagicMock()
658
+ app._codex_index.sessions_for_cwd.return_value = [
659
+ _codex_session(proj, other, mtime=1002.0),
660
+ _codex_session(proj, ours, mtime=1001.0),
661
+ ]
662
+ app._correlate_codex_rollout = lambda r: {ours, other}
663
+
664
+ app._resolve_placeholders([proj])
665
+
666
+ assert ours in app._running and not app._running[ours].is_placeholder
667
+ assert app._running[other].tmux_name == "cx-bbbbbbbb-bbbb-bb"
668
+ assert "__new__-tok-1" not in app._running
669
+
670
+
605
671
  def test_codex_identity_rejects_dead_displayed_provider(monkeypatch):
606
672
  app = App.__new__(App)
607
673
  running = _Running(
@@ -1,5 +1,6 @@
1
1
  """Tests for railmux.tmux_ctl — CLI wrappers (mocked, no real tmux needed)."""
2
2
 
3
+ import os
3
4
  import subprocess
4
5
  from pathlib import Path
5
6
  from unittest.mock import patch, MagicMock
@@ -488,6 +489,48 @@ def test_process_tree_rollout_ids_supports_swapped_real_pane(monkeypatch):
488
489
  assert process_tree_rollout_ids(100, Path("/s")) == {_UUID_A, _UUID_B}
489
490
 
490
491
 
492
+ def test_daemon_rollout_ids_follow_connected_app_server(monkeypatch):
493
+ """A daemon-backed Codex TUI holds no rollout; its connected daemon does."""
494
+ monkeypatch.setattr(tmux_ctl, "proc_fs_available", lambda: True)
495
+ monkeypatch.setattr(tmux_ctl, "descendant_pids", lambda pid: [101])
496
+ monkeypatch.setattr(os, "getuid", lambda: 7)
497
+ sockets = {100: set(), 101: {"11", "12"}, 300: {"21"}, 400: {"31"},
498
+ 500: {"22"}}
499
+ monkeypatch.setattr(
500
+ tmux_ctl, "_socket_inodes_for_pid", lambda pid: sockets.get(pid, set()))
501
+ ss_out = (
502
+ "u_str ESTAB 0 0 * 11 * 21\n"
503
+ "u_str ESTAB 0 0 /tmp/codex-daemon/sock 21 * 11\n"
504
+ "u_str ESTAB 0 0 * 12 * 0\n"
505
+ "u_str ESTAB 0 0 * 99 * 31\n"
506
+ )
507
+ monkeypatch.setattr(
508
+ tmux_ctl.subprocess, "run",
509
+ lambda *a, **k: subprocess.CompletedProcess(a, 0, ss_out.encode(), b""),
510
+ )
511
+ monkeypatch.setattr(os, "listdir", lambda path: ["self", "100", "101",
512
+ "300", "400", "500"])
513
+ monkeypatch.setattr(os, "stat", lambda path: MagicMock(st_uid=7))
514
+ argv = {
515
+ "300": b"codex\0app-server\0--managed-daemon\0",
516
+ "400": b"codex\0app-server\0", # not connected to this pane
517
+ "500": b"codex\0exec\0", # not an app-server
518
+ }
519
+ monkeypatch.setattr(
520
+ Path, "read_bytes", lambda path: argv[str(path).split("/")[2]])
521
+ monkeypatch.setattr(
522
+ tmux_ctl, "open_rollout_uuids_for_pid",
523
+ lambda pid, _sessions: {300: {_UUID_A}, 400: {_UUID_B}}.get(pid, set()),
524
+ )
525
+
526
+ assert tmux_ctl.daemon_rollout_ids(100, Path("/s")) == {_UUID_A}
527
+
528
+
529
+ def test_daemon_rollout_ids_none_without_procfs(monkeypatch):
530
+ monkeypatch.setattr(tmux_ctl, "proc_fs_available", lambda: False)
531
+ assert tmux_ctl.daemon_rollout_ids(100, Path("/s")) is None
532
+
533
+
491
534
  def test_process_tree_rollout_ids_none_without_procfs(monkeypatch):
492
535
  monkeypatch.setattr(tmux_ctl, "proc_fs_available", lambda: False)
493
536
  assert process_tree_rollout_ids(100, Path("/s")) is None
@@ -965,7 +965,7 @@ def test_claude_native_history_draws_tables_that_fit_the_pane():
965
965
 
966
966
  assert rows == [
967
967
  "● ┌──────┬─────────────────┐",
968
- " │ Name │ Notes │",
968
+ " │ Name │ Notes │",
969
969
  " ├──────┼─────────────────┤",
970
970
  " │ a │ one two three │",
971
971
  " │ │ four │",
@@ -988,15 +988,38 @@ def test_claude_native_history_matches_claude_table_and_link_layout():
988
988
  assert rows == [
989
989
  "● Title",
990
990
  " ",
991
- " ┌────┬─────────────────────────────┐",
992
- " │ PR │ Notes │",
993
- " ├────┼─────────────────────────────┤",
994
- " │ #1 │ alpha beta gamma delta │",
995
- " │ │ epsilon zeta eta theta │",
996
- " └────┴─────────────────────────────┘",
991
+ " ┌─────┬────────────────────────────┐",
992
+ " │ PR │ Notes │",
993
+ " ├─────┼────────────────────────────┤",
994
+ " │ #1 │ alpha beta gamma delta │",
995
+ " │ │ epsilon zeta eta theta │",
996
+ " └─────┴────────────────────────────┘",
997
997
  ]
998
998
 
999
999
 
1000
+ def test_claude_native_history_aligns_table_columns():
1001
+ table = "| L | C | R |\n|:---|:---:|---:|\n| a | b | c |"
1002
+ rows = _plain_rows(_native([_assistant(table)], width=40))[1:-1]
1003
+
1004
+ assert rows[1] == " │ L │ C │ R │"
1005
+ assert rows[3] == " │ a │ b │ c │"
1006
+
1007
+
1008
+ def test_claude_native_history_lists_tall_tables_vertically():
1009
+ long = " ".join(["word"] * 40)
1010
+ table = f"| File | Notes |\n|---|---|\n| a.py | {long} |\n| b.py | short |"
1011
+ rows = _plain_rows(_native([_assistant(table)], width=60))[1:-1]
1012
+
1013
+ first_width = 60 - len("Notes") - 3
1014
+ assert rows[0] == "● File: a.py"
1015
+ assert rows[1].startswith(" Notes: word")
1016
+ assert len(rows[1]) - len(" Notes: ") <= first_width
1017
+ # Continuation rows start at the margin and use the full width.
1018
+ assert rows[2] == " " + " ".join(["word"] * 11)
1019
+ assert rows[-3:] == [" " + "─" * 40, " File: b.py", " Notes: short"]
1020
+ assert all(len(row) <= 60 for row in rows)
1021
+
1022
+
1000
1023
  def test_claude_native_wrap_moves_long_word_when_that_saves_a_break():
1001
1024
  moved = _native([_assistant("intro " + "x" * 36)], width=20)
1002
1025
  kept = _native([_assistant("intro " + "x" * 30)], width=20)
@@ -1 +0,0 @@
1
- __version__ = "0.4.2.dev8"
File without changes
File without changes
File without changes
File without changes