railmux 0.4.2.dev13__tar.gz → 0.4.2.dev16__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 (212) hide show
  1. {railmux-0.4.2.dev13/src/railmux.egg-info → railmux-0.4.2.dev16}/PKG-INFO +54 -21
  2. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/README.md +52 -19
  3. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/pyproject.toml +1 -1
  4. railmux-0.4.2.dev16/src/railmux/__init__.py +1 -0
  5. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/background_index.py +68 -36
  6. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/cli.py +1 -1
  7. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/codex_index.py +6 -3
  8. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/config.py +22 -0
  9. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/config_cli.py +66 -4
  10. railmux-0.4.2.dev16/src/railmux/devin_index.py +185 -0
  11. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/diagnostics.py +4 -0
  12. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/display_transport.py +6 -0
  13. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/fast_display_server.py +50 -24
  14. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/modes.py +11 -1
  15. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/session_lease.py +2 -2
  16. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/setting_contracts.py +7 -1
  17. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/settings.py +37 -9
  18. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/terminal_screen.py +15 -1
  19. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/tmux_server.py +1 -0
  20. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ui/_widgets.py +21 -0
  21. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ui/app.py +559 -249
  22. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ui/keymap.py +1 -1
  23. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ui/modals.py +63 -31
  24. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16/src/railmux.egg-info}/PKG-INFO +54 -21
  25. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux.egg-info/SOURCES.txt +2 -0
  26. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_app_codex_placeholder.py +1 -1
  27. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_app_quit.py +1 -1
  28. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_app_restart_restore.py +5 -2
  29. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_app_running_recovery.py +1 -1
  30. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_codex_delete.py +3 -4
  31. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_config_cli.py +15 -0
  32. railmux-0.4.2.dev16/tests/test_devin_index.py +104 -0
  33. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_fast_display_server.py +169 -36
  34. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_focus_highlight.py +12 -5
  35. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_keymap.py +1 -1
  36. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_mode_selection.py +145 -1
  37. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_modes.py +2 -0
  38. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_options.py +13 -0
  39. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_orphan_recovery.py +3 -3
  40. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_release_workflow.py +5 -1
  41. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_tmux_integration.py +16 -2
  42. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_windows_synchronized_screen.py +2 -3
  43. railmux-0.4.2.dev13/src/railmux/__init__.py +0 -1
  44. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/LICENSE +0 -0
  45. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/MANIFEST.in +0 -0
  46. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/setup.cfg +0 -0
  47. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/__main__.py +0 -0
  48. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/atomic_file.py +0 -0
  49. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/codex_transcript.py +0 -0
  50. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/diagnostic_contract.py +0 -0
  51. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/discovery.py +0 -0
  52. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/entrypoint.py +0 -0
  53. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/fast_display_client.py +0 -0
  54. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/fast_display_history.py +0 -0
  55. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/fast_display_input.py +0 -0
  56. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/fast_display_protocol.py +0 -0
  57. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/favorites.py +0 -0
  58. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/fuzzy.py +0 -0
  59. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/help_workspace.py +0 -0
  60. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/image_paste.py +0 -0
  61. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/launcher.py +0 -0
  62. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/legacy_sessions.py +0 -0
  63. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/local_clipboard.py +0 -0
  64. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/local_open.py +0 -0
  65. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/models.py +0 -0
  66. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/mouse_manager.py +0 -0
  67. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/orphan_marker.py +0 -0
  68. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/pane_surface.py +0 -0
  69. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/path_codec.py +0 -0
  70. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/preview_pager.py +0 -0
  71. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/project_favorites.py +0 -0
  72. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/provider_paths.py +0 -0
  73. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/release_version.py +0 -0
  74. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/remote_config.py +0 -0
  75. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/renames.py +0 -0
  76. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/restart_state.py +0 -0
  77. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/runtime_config.py +0 -0
  78. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/scroll_agent.py +0 -0
  79. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/scroll_manager.py +0 -0
  80. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/selection_isolation.py +0 -0
  81. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/self_update.py +0 -0
  82. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/session_cache.py +0 -0
  83. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/session_index.py +0 -0
  84. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ssh_args.py +0 -0
  85. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ssh_compat.py +0 -0
  86. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ssh_display_diagnostics.py +0 -0
  87. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ssh_doctor.py +0 -0
  88. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ssh_preflight.py +0 -0
  89. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/system_deps.py +0 -0
  90. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/terminal_status.py +0 -0
  91. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/tmux_binding_manager.py +0 -0
  92. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/tmux_capabilities.py +0 -0
  93. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/tmux_ctl.py +0 -0
  94. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/tmux_health.py +0 -0
  95. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/tool_panes.py +0 -0
  96. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/transcript.py +0 -0
  97. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ui/__init__.py +0 -0
  98. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ui/projects_pane.py +0 -0
  99. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ui/running_pane.py +0 -0
  100. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ui/sessions_pane.py +0 -0
  101. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ui/sidebar.py +0 -0
  102. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ui/statusbar.py +0 -0
  103. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/ui/workspace.py +0 -0
  104. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/windows_attach_relay.py +0 -0
  105. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/windows_bootstrap.py +0 -0
  106. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/windows_install_log.py +0 -0
  107. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/windows_msys2.py +0 -0
  108. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/windows_pacman.py +0 -0
  109. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/windows_paths.py +0 -0
  110. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/windows_tmux_lifecycle.py +0 -0
  111. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux/windows_ui_transition.py +0 -0
  112. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux.egg-info/dependency_links.txt +0 -0
  113. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux.egg-info/entry_points.txt +0 -0
  114. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux.egg-info/requires.txt +0 -0
  115. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/src/railmux.egg-info/top_level.txt +0 -0
  116. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/app_test_harness.py +0 -0
  117. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_agent_workspace.py +0 -0
  118. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_atomic_file.py +0 -0
  119. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_background_index.py +0 -0
  120. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_claude_continuation.py +0 -0
  121. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_cli.py +0 -0
  122. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_code_map.py +0 -0
  123. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_codex_index.py +0 -0
  124. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_codex_lineage.py +0 -0
  125. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_codex_native_history.py +0 -0
  126. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_codex_transcript.py +0 -0
  127. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_config.py +0 -0
  128. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_denested_transport_benchmark.py +0 -0
  129. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_diagnostics.py +0 -0
  130. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_discovery.py +0 -0
  131. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_display_transport.py +0 -0
  132. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_fast_display_bootstrap.py +0 -0
  133. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_fast_display_history.py +0 -0
  134. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_fast_display_protocol.py +0 -0
  135. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_fast_display_selection.py +0 -0
  136. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_fast_display_terminal.py +0 -0
  137. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_fullscreen_binding.py +0 -0
  138. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_fuzzy.py +0 -0
  139. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_help_agent.py +0 -0
  140. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_help_workspace.py +0 -0
  141. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_history_cleanup.py +0 -0
  142. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_image_paste.py +0 -0
  143. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_launcher.py +0 -0
  144. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_layout_profile.py +0 -0
  145. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_legacy_sessions.py +0 -0
  146. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_local_clipboard.py +0 -0
  147. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_local_open.py +0 -0
  148. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_modals.py +0 -0
  149. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_mouse_manager.py +0 -0
  150. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_new_project.py +0 -0
  151. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_pane_surface.py +0 -0
  152. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_path_codec.py +0 -0
  153. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_preview_pager.py +0 -0
  154. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_project_favorites.py +0 -0
  155. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_projects_pane.py +0 -0
  156. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_provider_paths.py +0 -0
  157. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_release_notes.py +0 -0
  158. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_release_version.py +0 -0
  159. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_remote_config.py +0 -0
  160. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_renames.py +0 -0
  161. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_restart_state.py +0 -0
  162. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_running_pane.py +0 -0
  163. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_running_sort.py +0 -0
  164. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_runtime_config.py +0 -0
  165. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_scroll_agent.py +0 -0
  166. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_scroll_manager.py +0 -0
  167. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_selection_isolation.py +0 -0
  168. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_self_update.py +0 -0
  169. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_session_cache.py +0 -0
  170. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_session_index.py +0 -0
  171. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_session_lease.py +0 -0
  172. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_sessions_pane.py +0 -0
  173. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_setting_contracts.py +0 -0
  174. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_settings.py +0 -0
  175. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_sidebar.py +0 -0
  176. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_ssh_args.py +0 -0
  177. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_ssh_compat.py +0 -0
  178. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_ssh_display_benchmark.py +0 -0
  179. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_ssh_display_diagnostics.py +0 -0
  180. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_ssh_doctor.py +0 -0
  181. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_status.py +0 -0
  182. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_statusbar.py +0 -0
  183. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_system_deps.py +0 -0
  184. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_terminal_size.py +0 -0
  185. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_terminal_status.py +0 -0
  186. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_termux_local_touch.py +0 -0
  187. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_tmux_binding_manager.py +0 -0
  188. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_tmux_capabilities.py +0 -0
  189. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_tmux_ctl.py +0 -0
  190. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_tmux_health.py +0 -0
  191. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_tmux_server.py +0 -0
  192. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_tmux_status.py +0 -0
  193. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_tool_panes.py +0 -0
  194. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_transcript.py +0 -0
  195. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_utf8_state.py +0 -0
  196. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_web_demo_recorder.py +0 -0
  197. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_wheel_smoke.py +0 -0
  198. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_widgets.py +0 -0
  199. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_windows_attach_relay.py +0 -0
  200. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_windows_bootstrap.py +0 -0
  201. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_windows_install_log.py +0 -0
  202. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_windows_msys2.py +0 -0
  203. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_windows_pacman.py +0 -0
  204. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_windows_paths.py +0 -0
  205. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_windows_tmux_lifecycle.py +0 -0
  206. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_windows_ui_transition.py +0 -0
  207. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_windows_wrapper_contract.py +0 -0
  208. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tests/test_yolo_prompt.py +0 -0
  209. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tools/denested_transport_benchmark.py +0 -0
  210. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tools/release_notes.py +0 -0
  211. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tools/wheel_smoke.py +0 -0
  212. {railmux-0.4.2.dev13 → railmux-0.4.2.dev16}/tools/windows_archive_smoke.py +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: railmux
3
- Version: 0.4.2.dev13
4
- Summary: Terminal UI to navigate, resume, and start Claude Code and Codex sessions
3
+ Version: 0.4.2.dev16
4
+ Summary: Terminal UI to navigate, resume, and start Claude Code, Codex, and Devin sessions
5
5
  Author-email: Rightglow <zhang.taian@foxmail.com>
6
6
  License-Expression: MIT
7
7
  Project-URL: Homepage, https://rightglow.github.io/Railmux/
@@ -85,7 +85,7 @@ One-off non-resumable invocations such as `codex exec` are intentionally
85
85
  filtered from the sidebar.
86
86
 
87
87
  **Quick answers:** [use the mouse](#mouse) ·
88
- [switch Claude Code and Codex](#switching-between-claude-code-and-codex) ·
88
+ [switch agent modes](#switching-agent-modes) ·
89
89
  [start or resume a session](#starting-and-resuming) ·
90
90
  [copy text from an agent pane](#1-how-do-i-copy-text-from-the-agent-pane)
91
91
 
@@ -237,7 +237,7 @@ see [FAQ 1](#1-how-do-i-copy-text-from-the-agent-pane).
237
237
  | `d` | Delete the focused session (confirms, then finishes in background) |
238
238
  | `t` | Open or return to the managed terminal below the Target agent |
239
239
  | `T` | Return to that agent's managed Vim viewer, when open |
240
- | `m` | Switch agent mode (Claude Code ⇄ Codex) |
240
+ | `m` | Cycle installed, visible agent modes |
241
241
  | `o` | Open persistent Railmux options |
242
242
  | `␣` | Preview canonical history for the selected stopped or running session |
243
243
  | `F8` | Cycle agent layout: single → side-by-side → stacked |
@@ -262,7 +262,7 @@ empty launch surface without collapsing or reordering the other agent pane.
262
262
  After a soft restart the help session is not restored automatically—open Help
263
263
  and choose Ask again to reconnect to it.
264
264
 
265
- `+ New project` works in both Claude Code and Codex modes. Browse to an
265
+ `+ New project` works in each available agent mode. Browse to an
266
266
  existing directory and choose `. (use this path)`, or type a new relative,
267
267
  absolute, or `~`-based path. When no existing entry matches, select the
268
268
  explicit `+ create …` row (it is focused automatically) and press `Enter`;
@@ -313,15 +313,32 @@ selected choice confirms and closes the screen; `Esc` or `o` also closes it.
313
313
  Layout changes do not resize the current workspace; Codex auto-run changes
314
314
  affect new launches, not agents that are already running.
315
315
 
316
- ### Switching between Claude Code and Codex
316
+ ### Switching agent modes
317
317
 
318
- Press `m`, or select **More → Mode**, to switch the sidebar between Claude Code
319
- and Codex. The current mode controls which provider's Projects, Sessions, and
320
- Running lists are shown, while each mode remembers its selected project and
321
- Running filter. Agents running in the other mode keep running and reappear when
322
- you switch back; changing modes never stops them. Either CLI alone is enough to
323
- use Railmux; selecting a mode whose CLI is not installed shows a warning rather
324
- than stopping the workspace.
318
+ Press `m` to cycle the installed, visible agent CLIs on the machine running
319
+ Railmux. A single installed CLI opens directly and `m` stays in that mode.
320
+ With Codex and Devin, `m` switches between the two. Use **More → Mode** to
321
+ pick a provider directly. Railmux starts in your last mode if it is still
322
+ available.
323
+
324
+ Each mode remembers its project, filters, sidebar cursor, and scroll position
325
+ when you switch. Other agents keep running. Set agent visibility in
326
+ `railmux config` under **Program paths → Agent visibility**. The Mode menu
327
+ can still show Running sessions for a hidden or unavailable CLI.
328
+
329
+ ### Devin preview
330
+
331
+ Install and sign in to Devin CLI on the machine where the agent runs.
332
+ Use Devin CLI 3000.14.30821 or newer. In Railmux, choose **More → Mode → Devin**. Use **+ New project** for a new directory, `n` for a
333
+ new conversation, or `Enter` on an existing session to reopen it. Use **Running**
334
+ to return to a live Devin pane, and keep your usual `/model` and permission
335
+ controls inside Devin.
336
+
337
+ Railmux owns the live pane through tmux, so ordinary detach and SSH reconnect
338
+ preserve it. Devin sessions appear in **Sessions** after the first prompt.
339
+ Use Devin to inspect or delete saved history. Railmux saved-history Preview,
340
+ history deletion, and Ask Railmux are unavailable in this mode. The preview
341
+ runs on POSIX and WSL. Native Windows Devin is unavailable.
325
342
 
326
343
  ### Dual-agent layouts
327
344
 
@@ -539,6 +556,10 @@ home = "~/.codex"
539
556
  # New Codex launches: "always", "ask", or "never" (default: "ask")
540
557
  auto_run = "ask"
541
558
 
559
+ [devin]
560
+ # Command name or path to the Devin CLI (default: "devin")
561
+ binary = "devin"
562
+
542
563
  [environment]
543
564
  # "inherit", or an installed UTF-8 locale such as C.UTF-8 / en_US.UTF-8
544
565
  locale = "inherit"
@@ -563,6 +584,10 @@ poll_interval_ms = 1000
563
584
  # Set "nested" only when troubleshooting an unusual tmux environment.
564
585
  agent_transport = "swap" # or "nested"
565
586
 
587
+ [providers]
588
+ # Optional providers to skip in the mode cycle
589
+ hidden = []
590
+
566
591
  [interaction]
567
592
  # Clicked paths in native Windows and railmux ssh: "ask", "internal", or "external"
568
593
  path_open = "ask"
@@ -572,6 +597,8 @@ history_lines = 10000
572
597
  claude_history = "ask"
573
598
  # Codex history on managed displays: "native" (default) or "local"
574
599
  codex_history = "native"
600
+ # Devin history in railmux ssh: "local" (default) or "native"
601
+ devin_history = "local"
575
602
  ```
576
603
 
577
604
  Most users should leave `agent_transport` unchanged. Railmux automatically
@@ -582,14 +609,20 @@ This is Railmux's only user settings file. Manual edits, `railmux config`, and
582
609
  the in-app Options screen share the same authority and preserve comments,
583
610
  formatting, order, and unknown keys. `interaction.history_lines` belongs to
584
611
  the display client: the native Windows machine for local Railmux, or the
585
- machine that starts `railmux ssh`. `interaction.claude_history` belongs to the
586
- workspace that runs Claude Code, so it is remote for `railmux ssh`; the same
587
- holds for `interaction.codex_history`. With `codex_history = "local"`,
588
- scrolling a Codex pane in `railmux ssh` shows smooth Railmux-managed history
589
- rendered from the Codex session file, including earlier segments of a long
590
- thread, instead of sending every wheel step to Codex. The default `native`
591
- keeps Codex's own scrolling. The
592
- released `ssh.history_lines`, `ssh.claude_history`, and `ssh.path_open`
612
+ machine that starts `railmux ssh`. The per-agent history settings belong to
613
+ the machine running the agent. Change them in **Options** (`o`) or
614
+ `railmux config` → **Behavior / Options**. Managed displays adopt the changes
615
+ on their next history refresh.
616
+
617
+ - **Codex** defaults to `native`. Choose `local` for Railmux-managed scrolling.
618
+ When tmux has scrollback, Railmux keeps the original terminal styling. When
619
+ Codex uses the alternate screen without tmux scrollback, Railmux renders
620
+ earlier turns from the Codex session file and keeps live viewport colors.
621
+ - **Devin** defaults to `local` in `railmux ssh`, using Devin's styled tmux
622
+ scrollback. Select `native` to send scroll input through tmux to Devin's
623
+ terminal. Direct POSIX and WSL attaches use tmux and provider scrolling.
624
+
625
+ The released `ssh.history_lines`, `ssh.claude_history`, and `ssh.path_open`
593
626
  spellings are still read during upgrade, while new writes use `[interaction]`.
594
627
  The shared `interaction.path_open` preference controls recognized paths in
595
628
  native Windows and `railmux ssh`. Current interactive preferences are also
@@ -42,7 +42,7 @@ One-off non-resumable invocations such as `codex exec` are intentionally
42
42
  filtered from the sidebar.
43
43
 
44
44
  **Quick answers:** [use the mouse](#mouse) ·
45
- [switch Claude Code and Codex](#switching-between-claude-code-and-codex) ·
45
+ [switch agent modes](#switching-agent-modes) ·
46
46
  [start or resume a session](#starting-and-resuming) ·
47
47
  [copy text from an agent pane](#1-how-do-i-copy-text-from-the-agent-pane)
48
48
 
@@ -194,7 +194,7 @@ see [FAQ 1](#1-how-do-i-copy-text-from-the-agent-pane).
194
194
  | `d` | Delete the focused session (confirms, then finishes in background) |
195
195
  | `t` | Open or return to the managed terminal below the Target agent |
196
196
  | `T` | Return to that agent's managed Vim viewer, when open |
197
- | `m` | Switch agent mode (Claude Code ⇄ Codex) |
197
+ | `m` | Cycle installed, visible agent modes |
198
198
  | `o` | Open persistent Railmux options |
199
199
  | `␣` | Preview canonical history for the selected stopped or running session |
200
200
  | `F8` | Cycle agent layout: single → side-by-side → stacked |
@@ -219,7 +219,7 @@ empty launch surface without collapsing or reordering the other agent pane.
219
219
  After a soft restart the help session is not restored automatically—open Help
220
220
  and choose Ask again to reconnect to it.
221
221
 
222
- `+ New project` works in both Claude Code and Codex modes. Browse to an
222
+ `+ New project` works in each available agent mode. Browse to an
223
223
  existing directory and choose `. (use this path)`, or type a new relative,
224
224
  absolute, or `~`-based path. When no existing entry matches, select the
225
225
  explicit `+ create …` row (it is focused automatically) and press `Enter`;
@@ -270,15 +270,32 @@ selected choice confirms and closes the screen; `Esc` or `o` also closes it.
270
270
  Layout changes do not resize the current workspace; Codex auto-run changes
271
271
  affect new launches, not agents that are already running.
272
272
 
273
- ### Switching between Claude Code and Codex
273
+ ### Switching agent modes
274
274
 
275
- Press `m`, or select **More → Mode**, to switch the sidebar between Claude Code
276
- and Codex. The current mode controls which provider's Projects, Sessions, and
277
- Running lists are shown, while each mode remembers its selected project and
278
- Running filter. Agents running in the other mode keep running and reappear when
279
- you switch back; changing modes never stops them. Either CLI alone is enough to
280
- use Railmux; selecting a mode whose CLI is not installed shows a warning rather
281
- than stopping the workspace.
275
+ Press `m` to cycle the installed, visible agent CLIs on the machine running
276
+ Railmux. A single installed CLI opens directly and `m` stays in that mode.
277
+ With Codex and Devin, `m` switches between the two. Use **More → Mode** to
278
+ pick a provider directly. Railmux starts in your last mode if it is still
279
+ available.
280
+
281
+ Each mode remembers its project, filters, sidebar cursor, and scroll position
282
+ when you switch. Other agents keep running. Set agent visibility in
283
+ `railmux config` under **Program paths → Agent visibility**. The Mode menu
284
+ can still show Running sessions for a hidden or unavailable CLI.
285
+
286
+ ### Devin preview
287
+
288
+ Install and sign in to Devin CLI on the machine where the agent runs.
289
+ Use Devin CLI 3000.14.30821 or newer. In Railmux, choose **More → Mode → Devin**. Use **+ New project** for a new directory, `n` for a
290
+ new conversation, or `Enter` on an existing session to reopen it. Use **Running**
291
+ to return to a live Devin pane, and keep your usual `/model` and permission
292
+ controls inside Devin.
293
+
294
+ Railmux owns the live pane through tmux, so ordinary detach and SSH reconnect
295
+ preserve it. Devin sessions appear in **Sessions** after the first prompt.
296
+ Use Devin to inspect or delete saved history. Railmux saved-history Preview,
297
+ history deletion, and Ask Railmux are unavailable in this mode. The preview
298
+ runs on POSIX and WSL. Native Windows Devin is unavailable.
282
299
 
283
300
  ### Dual-agent layouts
284
301
 
@@ -496,6 +513,10 @@ home = "~/.codex"
496
513
  # New Codex launches: "always", "ask", or "never" (default: "ask")
497
514
  auto_run = "ask"
498
515
 
516
+ [devin]
517
+ # Command name or path to the Devin CLI (default: "devin")
518
+ binary = "devin"
519
+
499
520
  [environment]
500
521
  # "inherit", or an installed UTF-8 locale such as C.UTF-8 / en_US.UTF-8
501
522
  locale = "inherit"
@@ -520,6 +541,10 @@ poll_interval_ms = 1000
520
541
  # Set "nested" only when troubleshooting an unusual tmux environment.
521
542
  agent_transport = "swap" # or "nested"
522
543
 
544
+ [providers]
545
+ # Optional providers to skip in the mode cycle
546
+ hidden = []
547
+
523
548
  [interaction]
524
549
  # Clicked paths in native Windows and railmux ssh: "ask", "internal", or "external"
525
550
  path_open = "ask"
@@ -529,6 +554,8 @@ history_lines = 10000
529
554
  claude_history = "ask"
530
555
  # Codex history on managed displays: "native" (default) or "local"
531
556
  codex_history = "native"
557
+ # Devin history in railmux ssh: "local" (default) or "native"
558
+ devin_history = "local"
532
559
  ```
533
560
 
534
561
  Most users should leave `agent_transport` unchanged. Railmux automatically
@@ -539,14 +566,20 @@ This is Railmux's only user settings file. Manual edits, `railmux config`, and
539
566
  the in-app Options screen share the same authority and preserve comments,
540
567
  formatting, order, and unknown keys. `interaction.history_lines` belongs to
541
568
  the display client: the native Windows machine for local Railmux, or the
542
- machine that starts `railmux ssh`. `interaction.claude_history` belongs to the
543
- workspace that runs Claude Code, so it is remote for `railmux ssh`; the same
544
- holds for `interaction.codex_history`. With `codex_history = "local"`,
545
- scrolling a Codex pane in `railmux ssh` shows smooth Railmux-managed history
546
- rendered from the Codex session file, including earlier segments of a long
547
- thread, instead of sending every wheel step to Codex. The default `native`
548
- keeps Codex's own scrolling. The
549
- released `ssh.history_lines`, `ssh.claude_history`, and `ssh.path_open`
569
+ machine that starts `railmux ssh`. The per-agent history settings belong to
570
+ the machine running the agent. Change them in **Options** (`o`) or
571
+ `railmux config` → **Behavior / Options**. Managed displays adopt the changes
572
+ on their next history refresh.
573
+
574
+ - **Codex** defaults to `native`. Choose `local` for Railmux-managed scrolling.
575
+ When tmux has scrollback, Railmux keeps the original terminal styling. When
576
+ Codex uses the alternate screen without tmux scrollback, Railmux renders
577
+ earlier turns from the Codex session file and keeps live viewport colors.
578
+ - **Devin** defaults to `local` in `railmux ssh`, using Devin's styled tmux
579
+ scrollback. Select `native` to send scroll input through tmux to Devin's
580
+ terminal. Direct POSIX and WSL attaches use tmux and provider scrolling.
581
+
582
+ The released `ssh.history_lines`, `ssh.claude_history`, and `ssh.path_open`
550
583
  spellings are still read during upgrade, while new writes use `[interaction]`.
551
584
  The shared `interaction.path_open` preference controls recognized paths in
552
585
  native Windows and `railmux ssh`. Current interactive preferences are also
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
  [project]
6
6
  name = "railmux"
7
7
  dynamic = ["version"]
8
- description = "Terminal UI to navigate, resume, and start Claude Code and Codex sessions"
8
+ description = "Terminal UI to navigate, resume, and start Claude Code, Codex, and Devin sessions"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
11
11
  license = "MIT"
@@ -0,0 +1 @@
1
+ __version__ = "0.4.2.dev16"
@@ -12,7 +12,7 @@ from railmux.codex_index import (
12
12
  CodexIndex,
13
13
  ScanReport,
14
14
  _lineage_members,
15
- _lineage_representatives,
15
+ _path_key,
16
16
  persistent_cache_path,
17
17
  )
18
18
  from railmux.models import SessionMeta
@@ -22,6 +22,47 @@ from railmux.renames import Renames
22
22
  _MAX_WARNING = 180
23
23
 
24
24
 
25
+ @dataclass(frozen=True)
26
+ class _SessionView:
27
+ by_id: Mapping[str, SessionMeta]
28
+ lineages: Mapping[str, tuple[SessionMeta, ...]]
29
+ projects: Mapping[Path, tuple[SessionMeta, ...]]
30
+ resolved_paths: Mapping[Path, Path]
31
+
32
+ @classmethod
33
+ def build(
34
+ cls,
35
+ sessions: tuple[SessionMeta, ...],
36
+ resolved_paths: Mapping[Path, Path] | None = None,
37
+ ) -> _SessionView:
38
+ if resolved_paths is None:
39
+ resolved_paths = MappingProxyType({
40
+ path: _path_key(path)
41
+ for path in {meta.project.real_path for meta in sessions}
42
+ })
43
+ lineages = _lineage_members(sessions, path_key=resolved_paths.__getitem__)
44
+ projects: dict[Path, list[SessionMeta]] = {}
45
+ by_id = {meta.session_id: meta for meta in sessions}
46
+ for session_id, members in lineages.items():
47
+ newest = members[0]
48
+ if session_id == newest.session_id:
49
+ cwd = resolved_paths[newest.project.real_path]
50
+ projects.setdefault(cwd, []).append(newest)
51
+ return cls(
52
+ MappingProxyType(by_id),
53
+ MappingProxyType(lineages),
54
+ MappingProxyType({
55
+ cwd: tuple(sorted(
56
+ records,
57
+ key=lambda meta: (meta.last_mtime, str(meta.jsonl_path), meta.session_id),
58
+ reverse=True,
59
+ ))
60
+ for cwd, records in projects.items()
61
+ }),
62
+ resolved_paths,
63
+ )
64
+
65
+
25
66
  @dataclass(frozen=True)
26
67
  class IndexSnapshot:
27
68
  """One atomically published, immutable index generation."""
@@ -31,6 +72,7 @@ class IndexSnapshot:
31
72
  published_at: float
32
73
  report: ScanReport | None
33
74
  hidden_statuses: Mapping[str, str]
75
+ view: _SessionView
34
76
 
35
77
 
36
78
  class BackgroundCodexIndex:
@@ -63,7 +105,7 @@ class BackgroundCodexIndex:
63
105
  self._condition = threading.Condition()
64
106
  self._reader = threading.local()
65
107
  self._snapshot = IndexSnapshot(
66
- 0, (), 0.0, None, MappingProxyType({}))
108
+ 0, (), 0.0, None, MappingProxyType({}), _SessionView.build(()))
67
109
  self._requested = False
68
110
  self._force_requested = False
69
111
  self._invalidate_requested = False
@@ -194,27 +236,21 @@ class BackgroundCodexIndex:
194
236
  def all_cwds(self, *, refresh: bool = True) -> dict[Path, int]:
195
237
  if refresh:
196
238
  self.refresh()
197
- counts: dict[Path, int] = {}
198
- for meta in _lineage_representatives(self._visible_sessions()):
199
- cwd = meta.project.real_path
200
- counts[cwd] = counts.get(cwd, 0) + 1
201
- return counts
239
+ return {cwd: len(rows) for cwd, rows in self._visible_view().projects.items()}
202
240
 
203
241
  def sessions_for_cwd(
204
242
  self, cwd: Path, *, refresh: bool = True,
205
243
  ) -> list[SessionMeta]:
206
244
  if refresh:
207
245
  self.refresh()
208
- target = self._path_key(cwd)
209
- visible = self._visible_sessions()
210
- members_by_id = _lineage_members(visible)
211
- results = [
212
- self._with_override(meta, members_by_id.get(meta.session_id))
213
- for meta in _lineage_representatives(visible)
214
- if self._path_key(meta.project.real_path) == target
246
+ view = self._visible_view()
247
+ target = view.resolved_paths.get(cwd, cwd)
248
+ if target not in view.projects:
249
+ target = _path_key(cwd)
250
+ return [
251
+ self._with_override(meta, view.lineages[meta.session_id])
252
+ for meta in view.projects.get(target, ())
215
253
  ]
216
- results.sort(key=lambda meta: meta.last_mtime, reverse=True)
217
- return results
218
254
 
219
255
  def lineage_ids(
220
256
  self, session_id: str, *, refresh: bool = True,
@@ -222,8 +258,7 @@ class BackgroundCodexIndex:
222
258
  """UUID aliases belonging to *session_id*'s logical conversation."""
223
259
  if refresh:
224
260
  self.refresh()
225
- members = _lineage_members(
226
- self._visible_sessions()).get(session_id, ())
261
+ members = self._visible_view().lineages.get(session_id, ())
227
262
  return frozenset(meta.session_id for meta in members)
228
263
 
229
264
  def representative_for(
@@ -232,8 +267,7 @@ class BackgroundCodexIndex:
232
267
  """Newest UI representative for the lineage containing *session_id*."""
233
268
  if refresh:
234
269
  self.refresh()
235
- visible = self._visible_sessions()
236
- members = _lineage_members(visible).get(session_id)
270
+ members = self._visible_view().lineages.get(session_id)
237
271
  if not members:
238
272
  return None
239
273
  return self._with_override(members[0], members)
@@ -241,10 +275,8 @@ class BackgroundCodexIndex:
241
275
  def get(self, session_id: str, *, refresh: bool = True) -> SessionMeta | None:
242
276
  if refresh:
243
277
  self.refresh()
244
- for meta in self._visible_sessions():
245
- if meta.session_id == session_id:
246
- return self._with_override(meta)
247
- return None
278
+ meta = self._visible_view().by_id.get(session_id)
279
+ return self._with_override(meta) if meta is not None else None
248
280
 
249
281
  def hidden_status(
250
282
  self, session_id: str, *, refresh: bool = True,
@@ -263,7 +295,7 @@ class BackgroundCodexIndex:
263
295
  self._thread.join(max(0.0, timeout_s))
264
296
  return not self._thread.is_alive()
265
297
 
266
- def _visible_sessions(self) -> tuple[SessionMeta, ...]:
298
+ def _visible_view(self) -> _SessionView:
267
299
  pinned = getattr(self._reader, "view", None)
268
300
  if pinned is None:
269
301
  with self._condition:
@@ -272,11 +304,16 @@ class BackgroundCodexIndex:
272
304
  else:
273
305
  snapshot, tombstones = pinned
274
306
  if not tombstones:
275
- return snapshot.sessions
276
- return tuple(
277
- meta for meta in snapshot.sessions
278
- if meta.session_id not in tombstones
307
+ return snapshot.view
308
+ cached = getattr(self._reader, "tombstone_view", None)
309
+ if cached is not None and cached[:2] == (snapshot.generation, tombstones):
310
+ return cached[2]
311
+ view = _SessionView.build(
312
+ tuple(meta for meta in snapshot.sessions if meta.session_id not in tombstones),
313
+ snapshot.view.resolved_paths,
279
314
  )
315
+ self._reader.tombstone_view = (snapshot.generation, tombstones, view)
316
+ return view
280
317
 
281
318
  def _with_override(
282
319
  self,
@@ -291,13 +328,6 @@ class BackgroundCodexIndex:
291
328
  return replace(meta, title=title)
292
329
  return meta
293
330
 
294
- @staticmethod
295
- def _path_key(path: Path) -> Path:
296
- try:
297
- return path.resolve()
298
- except OSError:
299
- return path
300
-
301
331
  def _run(self) -> None:
302
332
  while True:
303
333
  with self._condition:
@@ -331,6 +361,7 @@ class BackgroundCodexIndex:
331
361
  self._scanner.invalidate()
332
362
  report = self._scanner.refresh()
333
363
  sessions = self._scanner.snapshot()
364
+ view = _SessionView.build(sessions)
334
365
  hidden_statuses = getattr(
335
366
  self._scanner, "hidden_statuses", lambda: {})()
336
367
  error: str | None = None
@@ -367,6 +398,7 @@ class BackgroundCodexIndex:
367
398
  report=report,
368
399
  hidden_statuses=MappingProxyType(
369
400
  dict(hidden_statuses)),
401
+ view=view,
370
402
  )
371
403
  live_ids = {meta.session_id for meta in sessions}
372
404
  self._tombstones.intersection_update(live_ids)
@@ -588,7 +588,7 @@ def main(argv: list[str] | None = None) -> int:
588
588
  " railmux config [--remote HOST] [OPTIONS]\n"
589
589
  " railmux doctor [--remote HOST] [OPTIONS]"
590
590
  ),
591
- description="Terminal workspace for Claude Code and Codex sessions",
591
+ description="Terminal workspace for Claude Code, Codex, and Devin sessions",
592
592
  epilog=(
593
593
  "Commands:\n"
594
594
  " railmux ssh HOST responsive remote workspace\n"
@@ -17,6 +17,7 @@ import stat
17
17
  import time
18
18
  from dataclasses import dataclass, replace
19
19
  from pathlib import Path
20
+ from typing import Callable
20
21
 
21
22
  from railmux.atomic_file import atomic_write_text
22
23
  from railmux.models import (
@@ -310,6 +311,8 @@ def _path_key(path: Path) -> Path:
310
311
 
311
312
  def _lineage_members(
312
313
  sessions: tuple[SessionMeta, ...] | list[SessionMeta],
314
+ *,
315
+ path_key: Callable[[Path], Path] = _path_key,
313
316
  ) -> dict[str, tuple[SessionMeta, ...]]:
314
317
  """Map every Codex UUID to its same-project fork lineage.
315
318
 
@@ -349,8 +352,8 @@ def _lineage_members(
349
352
  parent_id = meta.forked_from_id
350
353
  ancestor = by_id.get(parent_id) if parent_id else None
351
354
  if (ancestor is not None
352
- and _path_key(ancestor.project.real_path)
353
- == _path_key(meta.project.real_path)):
355
+ and path_key(ancestor.project.real_path)
356
+ == path_key(meta.project.real_path)):
354
357
  union(meta.session_id, ancestor.session_id)
355
358
 
356
359
  grouped: dict[str, list[SessionMeta]] = {}
@@ -1328,7 +1331,7 @@ def _is_codex_synthetic_message(text: str) -> bool:
1328
1331
  def _safe_encoded_name(cwd: Path) -> str:
1329
1332
  """Stable encoded name for a cwd — used as a synthetic Project key."""
1330
1333
  # Use a simple scheme: replace separators and special chars with hyphens.
1331
- s = str(cwd.resolve())
1334
+ s = str(cwd)
1332
1335
  out = "".join(c if c.isalnum() or c in "/." else "-" for c in s)
1333
1336
  # Prefix with "-" so it doesn't collide with Claude's path-encoded names
1334
1337
  # (which also start with "-").
@@ -18,6 +18,7 @@ from railmux.setting_contracts import (
18
18
  bounds_for,
19
19
  choices_for,
20
20
  )
21
+ from railmux.modes import DEFAULT_MODE_REGISTRY
21
22
  from railmux.provider_paths import provider_path
22
23
 
23
24
 
@@ -30,6 +31,7 @@ class Config:
30
31
  tmux_binary: str = "tmux"
31
32
  claude_binary: str = "claude"
32
33
  codex_binary: str = "codex"
34
+ devin_binary: str = "devin"
33
35
  locale: str = "inherit"
34
36
  codex_home: str = "~/.codex"
35
37
  poll_interval_ms: int = 1000
@@ -39,6 +41,8 @@ class Config:
39
41
  claude_history: str = "ask"
40
42
  codex_history: str = "native"
41
43
  interaction_path_open: str = "ask"
44
+ devin_history: str = "local"
45
+ hidden_modes: tuple[str, ...] = ()
42
46
 
43
47
  @property
44
48
  def ssh_history_lines(self) -> int:
@@ -137,11 +141,19 @@ def load_config(config_path: Path | None = None) -> Config:
137
141
  tmux = _table(data, "tmux")
138
142
  claude = _table(data, "claude")
139
143
  codex = _table(data, "codex")
144
+ devin = _table(data, "devin")
140
145
  environment = _table(data, "environment")
141
146
  live = _table(data, "live")
142
147
  projects = _table(data, "projects")
143
148
  ssh = _table(data, "ssh")
144
149
  interaction = _table(data, "interaction")
150
+ providers = _table(data, "providers")
151
+ hidden_modes = providers.get("hidden", [])
152
+ mode_keys = tuple(mode.key for mode in DEFAULT_MODE_REGISTRY.modes)
153
+ if not isinstance(hidden_modes, list) or any(
154
+ key not in mode_keys for key in hidden_modes
155
+ ):
156
+ raise ConfigError('providers.hidden must be a list of Claude, Codex, or Devin mode keys')
145
157
 
146
158
  poll_value = live.get("poll_interval_ms", 1000)
147
159
  if isinstance(poll_value, bool):
@@ -203,6 +215,13 @@ def load_config(config_path: Path | None = None) -> Config:
203
215
  ):
204
216
  raise ConfigError(
205
217
  'interaction.codex_history must be "local" or "native"')
218
+ devin_history = interaction.get("devin_history", "local")
219
+ if (
220
+ not isinstance(devin_history, str)
221
+ or devin_history not in choices_for("interaction.devin_history")
222
+ ):
223
+ raise ConfigError(
224
+ 'interaction.devin_history must be "local" or "native"')
206
225
  # The transport-neutral key wins. The released SSH-only spelling remains
207
226
  # a read alias so an upgrade never silently forgets the user's choice.
208
227
  canonical_path_open = "path_open" in interaction
@@ -219,6 +238,7 @@ def load_config(config_path: Path | None = None) -> Config:
219
238
  claude_binary=_command(
220
239
  claude, "binary", "claude", "claude.binary"),
221
240
  codex_binary=_command(codex, "binary", "codex", "codex.binary"),
241
+ devin_binary=_command(devin, "binary", "devin", "devin.binary"),
222
242
  locale=_locale(environment),
223
243
  codex_home=_string(codex, "home", "~/.codex", "codex.home"),
224
244
  poll_interval_ms=poll_interval_ms,
@@ -228,4 +248,6 @@ def load_config(config_path: Path | None = None) -> Config:
228
248
  claude_history=claude_history,
229
249
  codex_history=codex_history,
230
250
  interaction_path_open=path_open,
251
+ devin_history=devin_history,
252
+ hidden_modes=tuple(key for key in mode_keys if key in hidden_modes),
231
253
  )