railmux 0.4.2.dev15__tar.gz → 0.4.2.dev17__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.dev17}/PKG-INFO +52 -32
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/README.md +51 -31
- railmux-0.4.2.dev17/src/railmux/__init__.py +1 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/background_index.py +68 -36
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/codex_index.py +6 -3
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/codex_transcript.py +32 -16
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/config.py +19 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/config_cli.py +63 -3
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/display_transport.py +6 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/fast_display_history.py +111 -3
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/fast_display_protocol.py +48 -12
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/fast_display_server.py +71 -27
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/setting_contracts.py +7 -1
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/settings.py +35 -8
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/tmux_server.py +1 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/transcript.py +6 -6
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ui/_widgets.py +21 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ui/app.py +378 -196
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ui/modals.py +116 -68
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17/src/railmux.egg-info}/PKG-INFO +52 -32
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_app_restart_restore.py +5 -2
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_codex_delete.py +2 -3
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_codex_native_history.py +31 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_config_cli.py +15 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_fast_display_history.py +54 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_fast_display_server.py +170 -36
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_focus_highlight.py +12 -5
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_modals.py +11 -5
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_mode_selection.py +147 -1
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_modes.py +2 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_options.py +67 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_tmux_status.py +5 -1
- railmux-0.4.2.dev15/src/railmux/__init__.py +0 -1
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/LICENSE +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/MANIFEST.in +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/pyproject.toml +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/setup.cfg +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/__main__.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/atomic_file.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/cli.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/devin_index.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/diagnostic_contract.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/diagnostics.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/discovery.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/entrypoint.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/fast_display_client.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/fast_display_input.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/favorites.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/fuzzy.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/help_workspace.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/image_paste.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/launcher.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/legacy_sessions.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/local_clipboard.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/local_open.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/models.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/modes.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/mouse_manager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/orphan_marker.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/pane_surface.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/path_codec.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/preview_pager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/project_favorites.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/provider_paths.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/release_version.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/remote_config.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/renames.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/restart_state.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/runtime_config.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/scroll_agent.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/scroll_manager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/selection_isolation.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/self_update.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/session_cache.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/session_index.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/session_lease.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ssh_args.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ssh_compat.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ssh_display_diagnostics.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ssh_doctor.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ssh_preflight.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/system_deps.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/terminal_screen.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/terminal_status.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/tmux_binding_manager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/tmux_capabilities.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/tmux_ctl.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/tmux_health.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/tool_panes.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ui/__init__.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ui/keymap.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ui/projects_pane.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ui/running_pane.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ui/sessions_pane.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ui/sidebar.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ui/statusbar.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/ui/workspace.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/windows_attach_relay.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/windows_bootstrap.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/windows_install_log.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/windows_msys2.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/windows_pacman.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/windows_paths.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/windows_tmux_lifecycle.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux/windows_ui_transition.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux.egg-info/SOURCES.txt +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux.egg-info/dependency_links.txt +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux.egg-info/entry_points.txt +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux.egg-info/requires.txt +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/src/railmux.egg-info/top_level.txt +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/app_test_harness.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_agent_workspace.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_app_codex_placeholder.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_app_quit.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_app_running_recovery.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_atomic_file.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_background_index.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_claude_continuation.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_cli.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_code_map.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_codex_index.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_codex_lineage.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_codex_transcript.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_config.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_denested_transport_benchmark.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_devin_index.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_diagnostics.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_discovery.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_display_transport.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_fast_display_bootstrap.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_fast_display_protocol.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_fast_display_selection.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_fast_display_terminal.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_fullscreen_binding.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_fuzzy.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_help_agent.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_help_workspace.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_history_cleanup.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_image_paste.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_keymap.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_launcher.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_layout_profile.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_legacy_sessions.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_local_clipboard.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_local_open.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_mouse_manager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_new_project.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_orphan_recovery.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_pane_surface.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_path_codec.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_preview_pager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_project_favorites.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_projects_pane.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_provider_paths.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_release_notes.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_release_version.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_release_workflow.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_remote_config.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_renames.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_restart_state.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_running_pane.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_running_sort.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_runtime_config.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_scroll_agent.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_scroll_manager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_selection_isolation.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_self_update.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_session_cache.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_session_index.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_session_lease.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_sessions_pane.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_setting_contracts.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_settings.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_sidebar.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_ssh_args.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_ssh_compat.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_ssh_display_benchmark.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_ssh_display_diagnostics.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_ssh_doctor.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_status.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_statusbar.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_system_deps.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_terminal_size.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_terminal_status.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_termux_local_touch.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_tmux_binding_manager.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_tmux_capabilities.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_tmux_ctl.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_tmux_health.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_tmux_integration.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_tmux_server.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_tool_panes.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_transcript.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_utf8_state.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_web_demo_recorder.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_wheel_smoke.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_widgets.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_windows_attach_relay.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_windows_bootstrap.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_windows_install_log.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_windows_msys2.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_windows_pacman.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_windows_paths.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_windows_synchronized_screen.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_windows_tmux_lifecycle.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_windows_ui_transition.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_windows_wrapper_contract.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tests/test_yolo_prompt.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tools/denested_transport_benchmark.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tools/release_notes.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/tools/wheel_smoke.py +0 -0
- {railmux-0.4.2.dev15 → railmux-0.4.2.dev17}/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.dev17
|
|
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 |
|
|
@@ -285,9 +285,10 @@ shows the current value. Press `Ctrl-U` in the filter editor to clear it, then
|
|
|
285
285
|
The first Button Bar row keeps Help, Quit, and Detach visible. Select **More**
|
|
286
286
|
to reveal a second row with **Mode**, **Layout**, and **Options**; **Less**
|
|
287
287
|
collapses it. The `m`, `F8`, and `o` keyboard shortcuts remain available while
|
|
288
|
-
the row is hidden. On tmux 3.4 or newer, the bottom-left
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
the row is hidden. On tmux 3.4 or newer, click the bottom-left agent label
|
|
289
|
+
to open the Mode picker, or click the layout symbol to cycle layouts.
|
|
290
|
+
Clicking the message at bottom-right copies its complete text to the local
|
|
291
|
+
clipboard. Expanding the second Button Bar row takes
|
|
291
292
|
its one display line from the bottom Running section; Projects and Sessions
|
|
292
293
|
keep the same heights.
|
|
293
294
|
|
|
@@ -303,30 +304,35 @@ uses safe responsive defaults for that run without overwriting the saved
|
|
|
303
304
|
profile. The first Codex auto-run prompt uses the corresponding choices:
|
|
304
305
|
**Always**, **This Railmux run**, **No**, or **Never**.
|
|
305
306
|
|
|
306
|
-
Press `o`, or select **More → Options
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
307
|
+
Press `o`, or select **More → Options**. The first screen shows the **Agent
|
|
308
|
+
mode** picker and the current **Claude history**, **Codex history**, and
|
|
309
|
+
**Devin history** policies. Open any history row and choose **Local** or
|
|
310
|
+
**Native**. Claude also offers **Ask on scroll**. Select **Back to Options**
|
|
311
|
+
to return to the first screen.
|
|
312
|
+
|
|
313
|
+
Use the arrow keys and `Enter`/`Space`, or click a row. Selecting the active
|
|
314
|
+
policy closes Options. `Esc` and `o` also close it. Below the agent settings,
|
|
315
|
+
**Layout retention**, **Codex auto-run**, and **Railmux updates** offer
|
|
316
|
+
**Always**, **Ask every time**, and **Never**. Layout retention applies on
|
|
317
|
+
exit. Codex auto-run applies to future launches.
|
|
315
318
|
|
|
316
319
|
### Switching agent modes
|
|
317
320
|
|
|
318
|
-
Press `m`
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
321
|
+
Press `m` to cycle the installed, visible agent CLIs on the machine running
|
|
322
|
+
Railmux. A single installed CLI opens directly and `m` stays in that mode.
|
|
323
|
+
With Codex and Devin, `m` switches between the two. Pick a provider directly
|
|
324
|
+
from the bottom-left agent label, **More → Mode**, or **Options → Agent mode**.
|
|
325
|
+
Railmux starts in your last mode if it is still available.
|
|
326
|
+
|
|
327
|
+
Each mode remembers its project, filters, sidebar cursor, and scroll position
|
|
328
|
+
when you switch. Other agents keep running. Set agent visibility in
|
|
329
|
+
`railmux config` under **Program paths → Agent visibility**. The Mode menu
|
|
330
|
+
can still show Running sessions for a hidden or unavailable CLI.
|
|
324
331
|
|
|
325
332
|
### Devin preview
|
|
326
333
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
status bar says **Devin**. Use **+ New project** for a new directory, `n` for a
|
|
334
|
+
Install and sign in to Devin CLI on the machine where the agent runs.
|
|
335
|
+
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
336
|
new conversation, or `Enter` on an existing session to reopen it. Use **Running**
|
|
331
337
|
to return to a live Devin pane, and keep your usual `/model` and permission
|
|
332
338
|
controls inside Devin.
|
|
@@ -581,6 +587,10 @@ poll_interval_ms = 1000
|
|
|
581
587
|
# Set "nested" only when troubleshooting an unusual tmux environment.
|
|
582
588
|
agent_transport = "swap" # or "nested"
|
|
583
589
|
|
|
590
|
+
[providers]
|
|
591
|
+
# Optional providers to skip in the mode cycle
|
|
592
|
+
hidden = []
|
|
593
|
+
|
|
584
594
|
[interaction]
|
|
585
595
|
# Clicked paths in native Windows and railmux ssh: "ask", "internal", or "external"
|
|
586
596
|
path_open = "ask"
|
|
@@ -590,6 +600,8 @@ history_lines = 10000
|
|
|
590
600
|
claude_history = "ask"
|
|
591
601
|
# Codex history on managed displays: "native" (default) or "local"
|
|
592
602
|
codex_history = "native"
|
|
603
|
+
# Devin history in railmux ssh: "local" (default) or "native"
|
|
604
|
+
devin_history = "local"
|
|
593
605
|
```
|
|
594
606
|
|
|
595
607
|
Most users should leave `agent_transport` unchanged. Railmux automatically
|
|
@@ -600,14 +612,22 @@ This is Railmux's only user settings file. Manual edits, `railmux config`, and
|
|
|
600
612
|
the in-app Options screen share the same authority and preserve comments,
|
|
601
613
|
formatting, order, and unknown keys. `interaction.history_lines` belongs to
|
|
602
614
|
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
|
-
|
|
615
|
+
machine that starts `railmux ssh`. The per-agent history settings belong to
|
|
616
|
+
the machine running the agent. Change them in **Options** (`o`) or
|
|
617
|
+
`railmux config` → **Behavior / Options**. Managed displays adopt the changes
|
|
618
|
+
on their next history refresh.
|
|
619
|
+
|
|
620
|
+
- **Codex** defaults to `native`. Choose `local` for Railmux-managed scrolling.
|
|
621
|
+
When tmux has scrollback, Railmux keeps the original terminal styling. When
|
|
622
|
+
Codex uses the alternate screen without tmux scrollback, Railmux renders
|
|
623
|
+
earlier turns from the Codex session file and keeps live viewport colors.
|
|
624
|
+
While reading an answer in local history, the top row can show its prompt.
|
|
625
|
+
Wrapped web links retain their full destination in the scrollback.
|
|
626
|
+
- **Devin** defaults to `local` in `railmux ssh`, using Devin's styled tmux
|
|
627
|
+
scrollback. Select `native` to send scroll input through tmux to Devin's
|
|
628
|
+
terminal. Direct POSIX and WSL attaches use tmux and provider scrolling.
|
|
629
|
+
|
|
630
|
+
The released `ssh.history_lines`, `ssh.claude_history`, and `ssh.path_open`
|
|
611
631
|
spellings are still read during upgrade, while new writes use `[interaction]`.
|
|
612
632
|
The shared `interaction.path_open` preference controls recognized paths in
|
|
613
633
|
native Windows and `railmux ssh`. Current interactive preferences are also
|
|
@@ -829,7 +849,7 @@ memory and do not change remote tmux's own history limit.
|
|
|
829
849
|
Claude Code can use either Railmux's smooth read-only transcript or Claude's
|
|
830
850
|
native clickable history. The first upward scroll asks which behavior to use,
|
|
831
851
|
with **Always** and **this time** choices; change it later under **More →
|
|
832
|
-
Options → Claude
|
|
852
|
+
Options → Claude history**.
|
|
833
853
|
|
|
834
854
|
Dragging inside a visible agent pane selects and copies locally without tmux
|
|
835
855
|
copy-mode. Selection stays within that pane and viewport. `Ctrl-B [` remains
|
|
@@ -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 |
|
|
@@ -242,9 +242,10 @@ shows the current value. Press `Ctrl-U` in the filter editor to clear it, then
|
|
|
242
242
|
The first Button Bar row keeps Help, Quit, and Detach visible. Select **More**
|
|
243
243
|
to reveal a second row with **Mode**, **Layout**, and **Options**; **Less**
|
|
244
244
|
collapses it. The `m`, `F8`, and `o` keyboard shortcuts remain available while
|
|
245
|
-
the row is hidden. On tmux 3.4 or newer, the bottom-left
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
the row is hidden. On tmux 3.4 or newer, click the bottom-left agent label
|
|
246
|
+
to open the Mode picker, or click the layout symbol to cycle layouts.
|
|
247
|
+
Clicking the message at bottom-right copies its complete text to the local
|
|
248
|
+
clipboard. Expanding the second Button Bar row takes
|
|
248
249
|
its one display line from the bottom Running section; Projects and Sessions
|
|
249
250
|
keep the same heights.
|
|
250
251
|
|
|
@@ -260,30 +261,35 @@ uses safe responsive defaults for that run without overwriting the saved
|
|
|
260
261
|
profile. The first Codex auto-run prompt uses the corresponding choices:
|
|
261
262
|
**Always**, **This Railmux run**, **No**, or **Never**.
|
|
262
263
|
|
|
263
|
-
Press `o`, or select **More → Options
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
264
|
+
Press `o`, or select **More → Options**. The first screen shows the **Agent
|
|
265
|
+
mode** picker and the current **Claude history**, **Codex history**, and
|
|
266
|
+
**Devin history** policies. Open any history row and choose **Local** or
|
|
267
|
+
**Native**. Claude also offers **Ask on scroll**. Select **Back to Options**
|
|
268
|
+
to return to the first screen.
|
|
269
|
+
|
|
270
|
+
Use the arrow keys and `Enter`/`Space`, or click a row. Selecting the active
|
|
271
|
+
policy closes Options. `Esc` and `o` also close it. Below the agent settings,
|
|
272
|
+
**Layout retention**, **Codex auto-run**, and **Railmux updates** offer
|
|
273
|
+
**Always**, **Ask every time**, and **Never**. Layout retention applies on
|
|
274
|
+
exit. Codex auto-run applies to future launches.
|
|
272
275
|
|
|
273
276
|
### Switching agent modes
|
|
274
277
|
|
|
275
|
-
Press `m`
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
Press `m` to cycle the installed, visible agent CLIs on the machine running
|
|
279
|
+
Railmux. A single installed CLI opens directly and `m` stays in that mode.
|
|
280
|
+
With Codex and Devin, `m` switches between the two. Pick a provider directly
|
|
281
|
+
from the bottom-left agent label, **More → Mode**, or **Options → Agent mode**.
|
|
282
|
+
Railmux starts in your last mode if it is still available.
|
|
283
|
+
|
|
284
|
+
Each mode remembers its project, filters, sidebar cursor, and scroll position
|
|
285
|
+
when you switch. Other agents keep running. Set agent visibility in
|
|
286
|
+
`railmux config` under **Program paths → Agent visibility**. The Mode menu
|
|
287
|
+
can still show Running sessions for a hidden or unavailable CLI.
|
|
281
288
|
|
|
282
289
|
### Devin preview
|
|
283
290
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
status bar says **Devin**. Use **+ New project** for a new directory, `n` for a
|
|
291
|
+
Install and sign in to Devin CLI on the machine where the agent runs.
|
|
292
|
+
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
293
|
new conversation, or `Enter` on an existing session to reopen it. Use **Running**
|
|
288
294
|
to return to a live Devin pane, and keep your usual `/model` and permission
|
|
289
295
|
controls inside Devin.
|
|
@@ -538,6 +544,10 @@ poll_interval_ms = 1000
|
|
|
538
544
|
# Set "nested" only when troubleshooting an unusual tmux environment.
|
|
539
545
|
agent_transport = "swap" # or "nested"
|
|
540
546
|
|
|
547
|
+
[providers]
|
|
548
|
+
# Optional providers to skip in the mode cycle
|
|
549
|
+
hidden = []
|
|
550
|
+
|
|
541
551
|
[interaction]
|
|
542
552
|
# Clicked paths in native Windows and railmux ssh: "ask", "internal", or "external"
|
|
543
553
|
path_open = "ask"
|
|
@@ -547,6 +557,8 @@ history_lines = 10000
|
|
|
547
557
|
claude_history = "ask"
|
|
548
558
|
# Codex history on managed displays: "native" (default) or "local"
|
|
549
559
|
codex_history = "native"
|
|
560
|
+
# Devin history in railmux ssh: "local" (default) or "native"
|
|
561
|
+
devin_history = "local"
|
|
550
562
|
```
|
|
551
563
|
|
|
552
564
|
Most users should leave `agent_transport` unchanged. Railmux automatically
|
|
@@ -557,14 +569,22 @@ This is Railmux's only user settings file. Manual edits, `railmux config`, and
|
|
|
557
569
|
the in-app Options screen share the same authority and preserve comments,
|
|
558
570
|
formatting, order, and unknown keys. `interaction.history_lines` belongs to
|
|
559
571
|
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
|
-
|
|
572
|
+
machine that starts `railmux ssh`. The per-agent history settings belong to
|
|
573
|
+
the machine running the agent. Change them in **Options** (`o`) or
|
|
574
|
+
`railmux config` → **Behavior / Options**. Managed displays adopt the changes
|
|
575
|
+
on their next history refresh.
|
|
576
|
+
|
|
577
|
+
- **Codex** defaults to `native`. Choose `local` for Railmux-managed scrolling.
|
|
578
|
+
When tmux has scrollback, Railmux keeps the original terminal styling. When
|
|
579
|
+
Codex uses the alternate screen without tmux scrollback, Railmux renders
|
|
580
|
+
earlier turns from the Codex session file and keeps live viewport colors.
|
|
581
|
+
While reading an answer in local history, the top row can show its prompt.
|
|
582
|
+
Wrapped web links retain their full destination in the scrollback.
|
|
583
|
+
- **Devin** defaults to `local` in `railmux ssh`, using Devin's styled tmux
|
|
584
|
+
scrollback. Select `native` to send scroll input through tmux to Devin's
|
|
585
|
+
terminal. Direct POSIX and WSL attaches use tmux and provider scrolling.
|
|
586
|
+
|
|
587
|
+
The released `ssh.history_lines`, `ssh.claude_history`, and `ssh.path_open`
|
|
568
588
|
spellings are still read during upgrade, while new writes use `[interaction]`.
|
|
569
589
|
The shared `interaction.path_open` preference controls recognized paths in
|
|
570
590
|
native Windows and `railmux ssh`. Current interactive preferences are also
|
|
@@ -786,7 +806,7 @@ memory and do not change remote tmux's own history limit.
|
|
|
786
806
|
Claude Code can use either Railmux's smooth read-only transcript or Claude's
|
|
787
807
|
native clickable history. The first upward scroll asks which behavior to use,
|
|
788
808
|
with **Always** and **this time** choices; change it later under **More →
|
|
789
|
-
Options → Claude
|
|
809
|
+
Options → Claude history**.
|
|
790
810
|
|
|
791
811
|
Dragging inside a visible agent pane selects and copies locally without tmux
|
|
792
812
|
copy-mode. Selection stays within that pane and viewport. `Ctrl-B [` remains
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.4.2.dev17"
|
|
@@ -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 "-").
|
|
@@ -70,33 +70,49 @@ _FALLBACK_MARKERS = (
|
|
|
70
70
|
'"thread_rolled_back"', '"session_meta"',
|
|
71
71
|
)
|
|
72
72
|
|
|
73
|
+
_WEB_URL = rf"https?://[^\s<>\"'`{_CJK_PUNCTUATION}]+"
|
|
74
|
+
_WEB_URL_RE = re.compile(_WEB_URL, re.IGNORECASE)
|
|
73
75
|
_LINK_RE = re.compile(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
rf"\[([^\]\n]+)\]\((?:<({_WEB_URL})>|"
|
|
77
|
+
r"(https?://(?:[^\s()<>\\]|\\[()]|\([^()\s]*\))+))\)"
|
|
78
|
+
rf"|({_WEB_URL})",
|
|
79
|
+
re.IGNORECASE,
|
|
76
80
|
)
|
|
77
|
-
_URL_TRAILING = ".,;:!?)]}"
|
|
78
81
|
_STYLE_RE = re.compile(r"\x1b\[[0-9;]*m|\x1b\]8;;[^\x1b]*\x1b\\")
|
|
79
82
|
|
|
80
83
|
|
|
81
|
-
def
|
|
82
|
-
""
|
|
84
|
+
def _web_url(url: str) -> str:
|
|
85
|
+
return f"{CODEX_CYAN}{_link(url, url)}{FG_DEFAULT}"
|
|
83
86
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
|
|
88
|
+
def _bare_web_link(match: re.Match[str]) -> str:
|
|
89
|
+
raw = match.group(0)
|
|
90
|
+
url = raw.rstrip(".,;:!?")
|
|
91
|
+
pairs = {")": "(", "]": "[", "}": "{"}
|
|
92
|
+
while url and url[-1] in pairs:
|
|
93
|
+
closer = url[-1]
|
|
94
|
+
if url.count(closer) <= url.count(pairs[closer]):
|
|
95
|
+
break
|
|
96
|
+
url = url[:-1]
|
|
97
|
+
return _web_url(url) + raw[len(url):]
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def _link_bare_urls(line: str) -> str:
|
|
101
|
+
return _WEB_URL_RE.sub(_bare_web_link, line)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def _codex_inline(line: str, *, bold: bool = False) -> str:
|
|
105
|
+
"""Keep the visible destination and a full OSC 8 URL on every wrapped row."""
|
|
87
106
|
parts: list[str] = []
|
|
88
107
|
last = 0
|
|
89
108
|
for match in _LINK_RE.finditer(line):
|
|
90
109
|
parts.append(_markdown_inline(line[last:match.start()], bold=bold))
|
|
91
110
|
if match.group(1) is not None:
|
|
92
|
-
url = match.group(2)
|
|
93
111
|
label = _markdown_inline(match.group(1), bold=bold)
|
|
94
|
-
|
|
112
|
+
target = match.group(2) or re.sub(r"\\([()])", r"\1", match.group(3))
|
|
113
|
+
parts.append(f"{label} ({_web_url(target)})")
|
|
95
114
|
else:
|
|
96
|
-
|
|
97
|
-
url = raw.rstrip(_URL_TRAILING)
|
|
98
|
-
parts.append(f"{CODEX_CYAN}{_link(url, url)}{FG_DEFAULT}")
|
|
99
|
-
parts.append(raw[len(url):])
|
|
115
|
+
parts.append(_bare_web_link(match))
|
|
100
116
|
last = match.end()
|
|
101
117
|
parts.append(_markdown_inline(line[last:], bold=bold))
|
|
102
118
|
return "".join(parts)
|
|
@@ -296,7 +312,7 @@ class _Renderer:
|
|
|
296
312
|
if not text or text.lstrip().startswith(_CODEX_SYNTHETIC_PREFIXES):
|
|
297
313
|
return
|
|
298
314
|
self.start_turn()
|
|
299
|
-
self._block(_PROMPT, text.splitlines())
|
|
315
|
+
self._block(_PROMPT, [_link_bare_urls(line) for line in text.splitlines()])
|
|
300
316
|
|
|
301
317
|
def agent(self, text: str) -> None:
|
|
302
318
|
self.flush()
|
|
@@ -306,7 +322,7 @@ class _Renderer:
|
|
|
306
322
|
width = None if self.width is None else self.width - 2
|
|
307
323
|
rows: list[str] = []
|
|
308
324
|
for index, line in enumerate(
|
|
309
|
-
_markdown_lines(lines, width, inline=_codex_inline)
|
|
325
|
+
_markdown_lines(lines, width, inline=_codex_inline, literal=_link_bare_urls)
|
|
310
326
|
):
|
|
311
327
|
lead = f"{_BULLET} " if index == 0 else " "
|
|
312
328
|
plain = _STYLE_RE.sub("", line)
|