Commit 1a96672
* fix: batch fixes for issues #2715, 2716, 2717, 2719, 2724, 2727, 2729, 2730, 2736, 2740 [skip ci]
Implements the following features for cortex exec:
- #2715: Add --echo flag to include prompt in output
- #2716: Add --user flag for user identification
- #2717: Add --suffix flag for completion insertion
- #2719: Add --response-format flag for structured output
- #2724: Add --url flag to fetch and include web content
- #2727: Add --clipboard flag to read from system clipboard
- #2729: UTF-8 locale detection and warning for LANG=C environments
- #2730: Add --git-diff flag to include current git diff
- #2736: Add --include/--exclude flags for file pattern filtering
- #2740: PATH environment validation with helpful warnings
Fixes:
- #2715
- #2716
- #2717
- #2719
- #2724
- #2727
- #2729
- #2730
- #2736
- #2740
* fix: batch fixes for issues #2768, 2770, 2771, 2772, 2774, 2776, 2777, 2778, 2779, 2781 [skip ci]
Fixes:
- #2768: Add safe clipboard API without OSC 52 escape sequences to prevent leaking raw text in unsupported terminals
- #2770: Terminal bell - not applicable, no bell code in codebase
- #2771: Shift+Arrow text selection - handled by terminal, crossterm passes through
- #2772: Ctrl+S/Ctrl+Q flow control - not applicable, uses different shortcuts
- #2774: Windows CRLF line endings - add automatic normalization in file_utils::read_string()
- #2776: Cursor blink rate - add get_system_cursor_blink_interval() to respect system settings
- #2777: Terminal title restoration - save and restore original title on exit
- #2778: Compose key sequences - handled by crossterm/terminal
- #2779: Menu navigation wrap-around - add wrap-around to command_palette, help_browser, model_picker
- #2781: Ctrl+F text search - complex feature not in scope for this batch
* fix: batch fixes for issues #2794, 2795, 2796, 2797, 2798, 2799, 2801, 2802, 2803, 2804 [skip ci]
Fixes:
- #2794: Triple backticks parsing (text_sanitize module with normalize_code_fences)
- #2795: Child process stderr interleaving (subprocess_output module)
- #2796: Working directory not restored after error (cwd_guard module)
- #2797: ASCII control characters in terminal (text_sanitize module)
- #2798: Inconsistent symbolic link resolution (path_consistency module)
- #2799: Negative duration calculations (duration_utils module with MonotonicTimer)
- #2801: File creation ignores umask (file_permissions module)
- #2802: Inconsistent case sensitivity (path_consistency module)
- #2803: Signal handler re-entrancy (signal_safety module)
- #2804: Subprocess environment sanitization (subprocess_env module)
All fixes implemented as utility modules in cortex-common crate with:
- Comprehensive documentation
- Unit tests
- Safe APIs for the identified edge cases
---------
Co-authored-by: Bounty Bot <bounty-bot@factory.ai>
Co-authored-by: Droid Agent <droid@factory.ai>
1 parent ea9c4c5 commit 1a96672
18 files changed
Lines changed: 3183 additions & 21 deletions
File tree
- cortex-cli/src
- cortex-common
- src
- cortex-engine/src
- cortex-tui/src
- runner
- ui
- widgets
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments