railmux 0.4.2.dev15__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.
- {railmux-0.4.2.dev15/src/railmux.egg-info → railmux-0.4.2.dev16}/PKG-INFO +34 -19
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/README.md +33 -18
- railmux-0.4.2.dev16/src/railmux/__init__.py +1 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/background_index.py +68 -36
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/codex_index.py +6 -3
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/config.py +19 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/config_cli.py +63 -3
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/display_transport.py +6 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/fast_display_server.py +50 -24
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/setting_contracts.py +7 -1
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/settings.py +35 -8
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/tmux_server.py +1 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ui/_widgets.py +21 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ui/app.py +354 -193
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ui/modals.py +34 -4
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16/src/railmux.egg-info}/PKG-INFO +34 -19
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_app_restart_restore.py +5 -2
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_codex_delete.py +2 -3
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_config_cli.py +15 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_fast_display_server.py +128 -36
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_focus_highlight.py +12 -5
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_mode_selection.py +117 -1
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_modes.py +2 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_options.py +13 -0
- railmux-0.4.2.dev15/src/railmux/__init__.py +0 -1
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/LICENSE +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/MANIFEST.in +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/pyproject.toml +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/setup.cfg +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/__main__.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/atomic_file.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/cli.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/codex_transcript.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/devin_index.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/diagnostic_contract.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/diagnostics.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/discovery.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/entrypoint.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/fast_display_client.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/fast_display_history.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/fast_display_input.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/fast_display_protocol.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/favorites.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/fuzzy.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/help_workspace.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/image_paste.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/launcher.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/legacy_sessions.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/local_clipboard.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/local_open.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/models.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/modes.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/mouse_manager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/orphan_marker.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/pane_surface.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/path_codec.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/preview_pager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/project_favorites.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/provider_paths.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/release_version.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/remote_config.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/renames.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/restart_state.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/runtime_config.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/scroll_agent.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/scroll_manager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/selection_isolation.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/self_update.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/session_cache.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/session_index.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/session_lease.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ssh_args.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ssh_compat.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ssh_display_diagnostics.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ssh_doctor.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ssh_preflight.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/system_deps.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/terminal_screen.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/terminal_status.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/tmux_binding_manager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/tmux_capabilities.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/tmux_ctl.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/tmux_health.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/tool_panes.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/transcript.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ui/__init__.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ui/keymap.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ui/projects_pane.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ui/running_pane.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ui/sessions_pane.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ui/sidebar.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ui/statusbar.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/ui/workspace.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/windows_attach_relay.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/windows_bootstrap.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/windows_install_log.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/windows_msys2.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/windows_pacman.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/windows_paths.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/windows_tmux_lifecycle.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux/windows_ui_transition.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux.egg-info/SOURCES.txt +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux.egg-info/dependency_links.txt +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux.egg-info/entry_points.txt +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux.egg-info/requires.txt +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/src/railmux.egg-info/top_level.txt +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/app_test_harness.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_agent_workspace.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_app_codex_placeholder.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_app_quit.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_app_running_recovery.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_atomic_file.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_background_index.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_claude_continuation.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_cli.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_code_map.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_codex_index.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_codex_lineage.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_codex_native_history.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_codex_transcript.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_config.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_denested_transport_benchmark.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_devin_index.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_diagnostics.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_discovery.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_display_transport.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_fast_display_bootstrap.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_fast_display_history.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_fast_display_protocol.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_fast_display_selection.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_fast_display_terminal.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_fullscreen_binding.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_fuzzy.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_help_agent.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_help_workspace.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_history_cleanup.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_image_paste.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_keymap.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_launcher.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_layout_profile.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_legacy_sessions.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_local_clipboard.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_local_open.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_modals.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_mouse_manager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_new_project.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_orphan_recovery.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_pane_surface.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_path_codec.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_preview_pager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_project_favorites.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_projects_pane.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_provider_paths.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_release_notes.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_release_version.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_release_workflow.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_remote_config.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_renames.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_restart_state.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_running_pane.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_running_sort.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_runtime_config.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_scroll_agent.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_scroll_manager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_selection_isolation.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_self_update.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_session_cache.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_session_index.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_session_lease.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_sessions_pane.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_setting_contracts.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_settings.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_sidebar.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_ssh_args.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_ssh_compat.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_ssh_display_benchmark.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_ssh_display_diagnostics.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_ssh_doctor.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_status.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_statusbar.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_system_deps.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_terminal_size.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_terminal_status.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_termux_local_touch.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_tmux_binding_manager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_tmux_capabilities.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_tmux_ctl.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_tmux_health.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_tmux_integration.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_tmux_server.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_tmux_status.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_tool_panes.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_transcript.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_utf8_state.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_web_demo_recorder.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_wheel_smoke.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_widgets.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_windows_attach_relay.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_windows_bootstrap.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_windows_install_log.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_windows_msys2.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_windows_pacman.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_windows_paths.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_windows_synchronized_screen.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_windows_tmux_lifecycle.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_windows_ui_transition.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_windows_wrapper_contract.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tests/test_yolo_prompt.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tools/denested_transport_benchmark.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tools/release_notes.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/tools/wheel_smoke.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev16}/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.
|
|
3
|
+
Version: 0.4.2.dev16
|
|
4
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
|
|
@@ -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` | Cycle
|
|
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 |
|
|
@@ -315,18 +315,21 @@ affect new launches, not agents that are already running.
|
|
|
315
315
|
|
|
316
316
|
### Switching agent modes
|
|
317
317
|
|
|
318
|
-
Press `m`
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
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.
|
|
324
328
|
|
|
325
329
|
### Devin preview
|
|
326
330
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
status bar says **Devin**. Use **+ New project** for a new directory, `n` for a
|
|
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
|
|
330
333
|
new conversation, or `Enter` on an existing session to reopen it. Use **Running**
|
|
331
334
|
to return to a live Devin pane, and keep your usual `/model` and permission
|
|
332
335
|
controls inside Devin.
|
|
@@ -581,6 +584,10 @@ poll_interval_ms = 1000
|
|
|
581
584
|
# Set "nested" only when troubleshooting an unusual tmux environment.
|
|
582
585
|
agent_transport = "swap" # or "nested"
|
|
583
586
|
|
|
587
|
+
[providers]
|
|
588
|
+
# Optional providers to skip in the mode cycle
|
|
589
|
+
hidden = []
|
|
590
|
+
|
|
584
591
|
[interaction]
|
|
585
592
|
# Clicked paths in native Windows and railmux ssh: "ask", "internal", or "external"
|
|
586
593
|
path_open = "ask"
|
|
@@ -590,6 +597,8 @@ history_lines = 10000
|
|
|
590
597
|
claude_history = "ask"
|
|
591
598
|
# Codex history on managed displays: "native" (default) or "local"
|
|
592
599
|
codex_history = "native"
|
|
600
|
+
# Devin history in railmux ssh: "local" (default) or "native"
|
|
601
|
+
devin_history = "local"
|
|
593
602
|
```
|
|
594
603
|
|
|
595
604
|
Most users should leave `agent_transport` unchanged. Railmux automatically
|
|
@@ -600,14 +609,20 @@ This is Railmux's only user settings file. Manual edits, `railmux config`, and
|
|
|
600
609
|
the in-app Options screen share the same authority and preserve comments,
|
|
601
610
|
formatting, order, and unknown keys. `interaction.history_lines` belongs to
|
|
602
611
|
the display client: the native Windows machine for local Railmux, or the
|
|
603
|
-
machine that starts `railmux ssh`.
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
keeps
|
|
610
|
-
|
|
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`
|
|
611
626
|
spellings are still read during upgrade, while new writes use `[interaction]`.
|
|
612
627
|
The shared `interaction.path_open` preference controls recognized paths in
|
|
613
628
|
native Windows and `railmux ssh`. Current interactive preferences are also
|
|
@@ -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` | Cycle
|
|
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 |
|
|
@@ -272,18 +272,21 @@ affect new launches, not agents that are already running.
|
|
|
272
272
|
|
|
273
273
|
### Switching agent modes
|
|
274
274
|
|
|
275
|
-
Press `m`
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
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.
|
|
281
285
|
|
|
282
286
|
### Devin preview
|
|
283
287
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
status bar says **Devin**. Use **+ New project** for a new directory, `n` for a
|
|
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
|
|
287
290
|
new conversation, or `Enter` on an existing session to reopen it. Use **Running**
|
|
288
291
|
to return to a live Devin pane, and keep your usual `/model` and permission
|
|
289
292
|
controls inside Devin.
|
|
@@ -538,6 +541,10 @@ poll_interval_ms = 1000
|
|
|
538
541
|
# Set "nested" only when troubleshooting an unusual tmux environment.
|
|
539
542
|
agent_transport = "swap" # or "nested"
|
|
540
543
|
|
|
544
|
+
[providers]
|
|
545
|
+
# Optional providers to skip in the mode cycle
|
|
546
|
+
hidden = []
|
|
547
|
+
|
|
541
548
|
[interaction]
|
|
542
549
|
# Clicked paths in native Windows and railmux ssh: "ask", "internal", or "external"
|
|
543
550
|
path_open = "ask"
|
|
@@ -547,6 +554,8 @@ history_lines = 10000
|
|
|
547
554
|
claude_history = "ask"
|
|
548
555
|
# Codex history on managed displays: "native" (default) or "local"
|
|
549
556
|
codex_history = "native"
|
|
557
|
+
# Devin history in railmux ssh: "local" (default) or "native"
|
|
558
|
+
devin_history = "local"
|
|
550
559
|
```
|
|
551
560
|
|
|
552
561
|
Most users should leave `agent_transport` unchanged. Railmux automatically
|
|
@@ -557,14 +566,20 @@ This is Railmux's only user settings file. Manual edits, `railmux config`, and
|
|
|
557
566
|
the in-app Options screen share the same authority and preserve comments,
|
|
558
567
|
formatting, order, and unknown keys. `interaction.history_lines` belongs to
|
|
559
568
|
the display client: the native Windows machine for local Railmux, or the
|
|
560
|
-
machine that starts `railmux ssh`.
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
keeps
|
|
567
|
-
|
|
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`
|
|
568
583
|
spellings are still read during upgrade, while new writes use `[interaction]`.
|
|
569
584
|
The shared `interaction.path_open` preference controls recognized paths in
|
|
570
585
|
native Windows and `railmux ssh`. Current interactive preferences are also
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
245
|
-
|
|
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
|
|
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.
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
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)
|
|
@@ -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
|
|
353
|
-
==
|
|
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
|
|
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
|
|
|
@@ -40,6 +41,8 @@ class Config:
|
|
|
40
41
|
claude_history: str = "ask"
|
|
41
42
|
codex_history: str = "native"
|
|
42
43
|
interaction_path_open: str = "ask"
|
|
44
|
+
devin_history: str = "local"
|
|
45
|
+
hidden_modes: tuple[str, ...] = ()
|
|
43
46
|
|
|
44
47
|
@property
|
|
45
48
|
def ssh_history_lines(self) -> int:
|
|
@@ -144,6 +147,13 @@ def load_config(config_path: Path | None = None) -> Config:
|
|
|
144
147
|
projects = _table(data, "projects")
|
|
145
148
|
ssh = _table(data, "ssh")
|
|
146
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')
|
|
147
157
|
|
|
148
158
|
poll_value = live.get("poll_interval_ms", 1000)
|
|
149
159
|
if isinstance(poll_value, bool):
|
|
@@ -205,6 +215,13 @@ def load_config(config_path: Path | None = None) -> Config:
|
|
|
205
215
|
):
|
|
206
216
|
raise ConfigError(
|
|
207
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"')
|
|
208
225
|
# The transport-neutral key wins. The released SSH-only spelling remains
|
|
209
226
|
# a read alias so an upgrade never silently forgets the user's choice.
|
|
210
227
|
canonical_path_open = "path_open" in interaction
|
|
@@ -231,4 +248,6 @@ def load_config(config_path: Path | None = None) -> Config:
|
|
|
231
248
|
claude_history=claude_history,
|
|
232
249
|
codex_history=codex_history,
|
|
233
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),
|
|
234
253
|
)
|
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
|
|
4
4
|
import argparse
|
|
5
5
|
import os
|
|
6
|
+
import shutil
|
|
6
7
|
import sys
|
|
7
8
|
from contextlib import contextmanager
|
|
8
9
|
from dataclasses import dataclass, replace
|
|
@@ -10,9 +11,12 @@ from pathlib import Path
|
|
|
10
11
|
from typing import Iterator, TextIO
|
|
11
12
|
|
|
12
13
|
from railmux.config import ConfigError, default_config_path, load_config
|
|
14
|
+
from railmux.modes import DEFAULT_MODE_REGISTRY, DEVIN_MODE
|
|
15
|
+
from railmux.provider_paths import running_in_windows_wrapper
|
|
13
16
|
from railmux.runtime_config import (
|
|
14
17
|
check_executable,
|
|
15
18
|
check_utf8_locale,
|
|
19
|
+
normalized_command,
|
|
16
20
|
runtime_environment,
|
|
17
21
|
)
|
|
18
22
|
from railmux.settings import MANAGED_CONFIG_KEYS, Settings
|
|
@@ -120,6 +124,13 @@ _BEHAVIOR_SETTINGS = (
|
|
|
120
124
|
("native", "Always use Codex native history")),
|
|
121
125
|
"set_codex_history_policy",
|
|
122
126
|
),
|
|
127
|
+
_PolicySetting(
|
|
128
|
+
"Devin managed history", "interaction", "devin_history",
|
|
129
|
+
"devin_history_policy",
|
|
130
|
+
(("local", "Always use smooth local history"),
|
|
131
|
+
("native", "Always use native terminal scrolling")),
|
|
132
|
+
"set_devin_history_policy",
|
|
133
|
+
),
|
|
123
134
|
)
|
|
124
135
|
|
|
125
136
|
_RELEASED_POLICIES = 5
|
|
@@ -130,7 +141,7 @@ _BEHAVIOR_KEYS = {
|
|
|
130
141
|
"codex": ("auto_run",),
|
|
131
142
|
"updates": ("auto_update",),
|
|
132
143
|
"interaction": (
|
|
133
|
-
"history_lines", "claude_history", "codex_history", "path_open",
|
|
144
|
+
"history_lines", "claude_history", "codex_history", "devin_history", "path_open",
|
|
134
145
|
),
|
|
135
146
|
"ssh": ("history_lines", "claude_history", "path_open"),
|
|
136
147
|
}
|
|
@@ -424,6 +435,7 @@ def _behavior_menu(
|
|
|
424
435
|
"claude_history_policy": settings.claude_history_policy,
|
|
425
436
|
"path_open_policy": settings.path_open_policy,
|
|
426
437
|
"codex_history_policy": settings.codex_history_policy,
|
|
438
|
+
"devin_history_policy": settings.devin_history_policy,
|
|
427
439
|
}
|
|
428
440
|
# Released entry numbers stay stable: options added later follow the
|
|
429
441
|
# local-only history capacity entry.
|
|
@@ -469,6 +481,7 @@ def _behavior_menu(
|
|
|
469
481
|
behavior_keys["interaction"] = (
|
|
470
482
|
"claude_history",
|
|
471
483
|
"codex_history",
|
|
484
|
+
"devin_history",
|
|
472
485
|
"path_open",
|
|
473
486
|
)
|
|
474
487
|
behavior_keys["ssh"] = ("claude_history", "path_open")
|
|
@@ -580,7 +593,16 @@ def _program_menu(
|
|
|
580
593
|
category_index=2,
|
|
581
594
|
)
|
|
582
595
|
for index, (section, title) in enumerate(programs, 1):
|
|
583
|
-
|
|
596
|
+
binary = getattr(config, f"{section}_binary")
|
|
597
|
+
info = [binary]
|
|
598
|
+
if section == DEVIN_MODE.key and running_in_windows_wrapper():
|
|
599
|
+
info.append("unavailable in native Windows")
|
|
600
|
+
elif shutil.which(normalized_command(binary)) is None:
|
|
601
|
+
info.append("executable not found")
|
|
602
|
+
if section in config.hidden_modes:
|
|
603
|
+
info.append("hidden from mode switching")
|
|
604
|
+
_write(stdout, f" {index}. {title} [{', '.join(info)}]")
|
|
605
|
+
_write(stdout, " v. Agent visibility")
|
|
584
606
|
_write(stdout, " r. Reset all program paths")
|
|
585
607
|
_write(stdout, " b. Back")
|
|
586
608
|
_write(stdout, " q. Exit")
|
|
@@ -590,6 +612,11 @@ def _program_menu(
|
|
|
590
612
|
return _BACK
|
|
591
613
|
if choice == "q":
|
|
592
614
|
return _EXIT
|
|
615
|
+
if choice == "v":
|
|
616
|
+
if _edit_mode_visibility(stdin, stdout, feedback, config.hidden_modes,
|
|
617
|
+
remote_context=remote_context) is _EXIT:
|
|
618
|
+
return _EXIT
|
|
619
|
+
continue
|
|
593
620
|
if choice == "r":
|
|
594
621
|
if _confirm(stdin, stdout, "Reset every program path to PATH lookup?"):
|
|
595
622
|
_saved(Settings().reset_keys(_PROGRAM_KEYS), feedback)
|
|
@@ -610,6 +637,39 @@ def _program_menu(
|
|
|
610
637
|
return _EXIT
|
|
611
638
|
|
|
612
639
|
|
|
640
|
+
def _edit_mode_visibility(
|
|
641
|
+
stdin: TextIO,
|
|
642
|
+
stdout: TextIO,
|
|
643
|
+
feedback: _Feedback,
|
|
644
|
+
hidden: tuple[str, ...],
|
|
645
|
+
*,
|
|
646
|
+
remote_context: bool,
|
|
647
|
+
) -> object | None:
|
|
648
|
+
_render_editor_header(
|
|
649
|
+
stdout, remote_context=remote_context, category="Program paths",
|
|
650
|
+
setting="Agent visibility",
|
|
651
|
+
)
|
|
652
|
+
_write(stdout, "Toggle an agent's visibility in mode switching on the next launch.")
|
|
653
|
+
modes = DEFAULT_MODE_REGISTRY.modes
|
|
654
|
+
for index, mode in enumerate(modes, 1):
|
|
655
|
+
state = "hidden" if mode.key in hidden else "shown when installed"
|
|
656
|
+
_write(stdout, f" {index}. {mode.label} [{state}]")
|
|
657
|
+
_write(stdout, " b. Back")
|
|
658
|
+
_write(stdout, " q. Exit")
|
|
659
|
+
choice = _read(stdin, stdout, "Choose: ").lower()
|
|
660
|
+
if choice == "q":
|
|
661
|
+
return _EXIT
|
|
662
|
+
if choice == "b":
|
|
663
|
+
return _BACK
|
|
664
|
+
if not choice.isdigit() or not 1 <= int(choice) <= len(modes):
|
|
665
|
+
feedback.set("Choose one of the listed entries.", level="warning")
|
|
666
|
+
return None
|
|
667
|
+
key = modes[int(choice) - 1].key
|
|
668
|
+
updated = tuple(item for item in hidden if item != key) if key in hidden else (*hidden, key)
|
|
669
|
+
_saved(Settings().set_hidden_modes(updated), feedback)
|
|
670
|
+
return None
|
|
671
|
+
|
|
672
|
+
|
|
613
673
|
def _edit_locale(
|
|
614
674
|
stdin: TextIO,
|
|
615
675
|
stdout: TextIO,
|
|
@@ -749,7 +809,7 @@ def _recover_invalid_config(
|
|
|
749
809
|
def _managed_reset_keys(*, remote_context: bool) -> dict[str, tuple[str, ...]]:
|
|
750
810
|
keys = dict(MANAGED_CONFIG_KEYS)
|
|
751
811
|
if remote_context:
|
|
752
|
-
keys["interaction"] = ("claude_history", "codex_history", "path_open")
|
|
812
|
+
keys["interaction"] = ("claude_history", "codex_history", "devin_history", "path_open")
|
|
753
813
|
keys["ssh"] = ("claude_history", "path_open")
|
|
754
814
|
return keys
|
|
755
815
|
|
|
@@ -302,6 +302,8 @@ class NestedDisplayTransport:
|
|
|
302
302
|
NestedDisplayTransport._set_history_source(pane_id, None)
|
|
303
303
|
tmux_ctl.set_pane_user_option(
|
|
304
304
|
pane_id, tmux_server.TRANSCRIPT_SOURCE_OPTION, None)
|
|
305
|
+
tmux_ctl.set_pane_user_option(
|
|
306
|
+
pane_id, tmux_server.HISTORY_PROVIDER_OPTION, None)
|
|
305
307
|
|
|
306
308
|
def attach(
|
|
307
309
|
self,
|
|
@@ -785,6 +787,10 @@ class AgentDisplayTransport:
|
|
|
785
787
|
"set-option", "-p", "-t", old.placeholder_pane_id,
|
|
786
788
|
"-u", tmux_server.TRANSCRIPT_SOURCE_OPTION,
|
|
787
789
|
),
|
|
790
|
+
(
|
|
791
|
+
"set-option", "-p", "-t", old.placeholder_pane_id,
|
|
792
|
+
"-u", tmux_server.HISTORY_PROVIDER_OPTION,
|
|
793
|
+
),
|
|
788
794
|
*_marker_commands(prepared, slot.key),
|
|
789
795
|
(
|
|
790
796
|
"swap-pane", "-d", "-s", prepared.agent_pane_id,
|