Skip to content

forges/PR support / discard cmd / win32 paths #33

Merged
mwallner merged 9 commits into
developfrom
task/forges
Jul 3, 2026
Merged

forges/PR support / discard cmd / win32 paths #33
mwallner merged 9 commits into
developfrom
task/forges

Conversation

@mwallner

@mwallner mwallner commented Jul 2, 2026

Copy link
Copy Markdown
Owner

No description provided.

🤖 Manfred Wallner added 6 commits July 2, 2026 10:30
…icts

The previous approach of draining the input buffer before entering the
conflict selector TUI was unreliable across terminal/OS combinations
because it depends on raw-mode state between TUI sessions.

Instead, wrap the poll_event closure in select_conflicts to silently
ignore all input for the first 300ms after invocation. This gives the
terminal state time to settle and prevents the progress screen dismiss
key from bleeding into the conflict selector.

select_conflicts_on_terminal is unchanged, so no test callers are
affected.
- Conflict selector debounce: 300ms -> 1000ms for slower machines
- Progress screen auto-dismisses 500ms after all steps succeed
  (failure/cancellation still requires manual Esc dismissal, since user
  needs time to read the error message)
- Summary text stripped of "press Esc" for the success case since the
  screen closes on its own
- run_progress_on_terminal gains auto_dismiss_after: Option<Duration>
  parameter; production uses Some(500ms), tests pass None
…nd-line length limit

- Changed commit(), commit_strict(), and commit_slice() to use git commit -F -
  (stdin) instead of -m <message>
- On Windows, CreateProcessW fails with ERROR_FILENAME_EXCED_RANGE (os error 206)
  when the command line exceeds 32,767 characters
- The partial-merge commit message in cmd_merge_workflow.rs lists ALL merged and
  sliced file paths, which can easily blow past the limit in large merges
- Added commit_via_stdin helper in commit.rs, shared by commit and commit_strict
@mwallner mwallner changed the title forges/PR support and discard cmd forges/PR support / discard cmd / win32 paths Jul 2, 2026
…ming

- Add to_fs_path() helper that adds \?\ prefix on Windows for paths > 240 chars
- Wrap 7 std::fs call sites and 2 create_dir_all calls with to_fs_path()
- Shorten MMM worktree dirs from full branch path to _mmm-{hash} naming
- pick_new_worktree_path hash fallback now re-checks 240-char limit
- ensure_longpaths_support() verifies config was applied
@mwallner mwallner merged commit 0e6bb52 into develop Jul 3, 2026
3 checks passed
@mwallner mwallner deleted the task/forges branch July 3, 2026 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant