Skip to content

Address PR #15 review findings across config/start/nuke and TUI paste/scroll behavior#16

Merged
elicpeter merged 4 commits into
mainfrom
copilot/fix-comments-in-review-thread
May 25, 2026
Merged

Address PR #15 review findings across config/start/nuke and TUI paste/scroll behavior#16
elicpeter merged 4 commits into
mainfrom
copilot/fix-comments-in-review-thread

Conversation

Copilot AI commented May 24, 2026

Copy link
Copy Markdown
Contributor

This updates the areas called out in the review thread: wizard paste input handling, sweep threshold validity, nuke confirmation semantics, start help text accuracy, and multiline scroll math in iteration inputs. The goal is to align user-visible behavior and generated config with current runtime expectations.

  • Wizard: handle bracketed paste events

    • Added CtEvent::Paste handling in src/tui/wizard.rs.
    • Pasted text is now applied to the active editable field through existing key-path validation logic (budget/sweep/tests), instead of being dropped.
  • Config writer: prevent invalid trigger_min_items = 0

    • In src/cli/config.rs, sweep_threshold is clamped to >= 1 before writing trigger_min_items.
    • This prevents emitting config that fails loader validation when wizard input parses as Some(0).
  • nuke confirmation: align behavior with documented semantics

    • In src/cli/nuke.rs, confirmation now accepts any input starting with y/Y (after trim/lowercase), matching the function contract.
  • start command help text: align docs with actual flow

    • In src/cli/mod.rs, updated Start command description to reflect real behavior for missing .pitboss/ (run setup + print next steps; no automatic play --tui chaining).
  • Iteration TUI: multiline-aware visual scroll/cursor math

    • In src/tui/iteration.rs, replaced single-line char-count assumptions with newline-aware visual line calculations.
    • Scroll/cursor positioning now correctly accounts for explicit \n plus wrapping when input contains multiline paste content.
// src/cli/config.rs
let sweep_min = result.sweep_threshold.unwrap_or(5).max(1);

jrf227 and others added 2 commits May 24, 2026 08:28
  - new-user branch routes to setup
  - existing-user branch shows snapshot (budget/phases/deferred)
    with continue/sweep/new-plan paths
  - new-plan flow drives in-TUI interview + planner agent
    (questioner_ranged.txt template), shows generated phase list
    with run/wait/terminate choices
  "

Co-authored-by: elicpeter <54954007+elicpeter@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code according to review comments Address PR #15 review findings across config/start/nuke and TUI paste/scroll behavior May 24, 2026
Copilot AI requested a review from elicpeter May 24, 2026 08:37
@elicpeter

Copy link
Copy Markdown
Owner

@copilot fix rustdoc failing ci

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@elicpeter

Copy link
Copy Markdown
Owner

@copilot fix rustdoc failing ci

Copilot AI commented May 25, 2026

Copy link
Copy Markdown
Contributor Author

@copilot fix rustdoc failing ci

Fixed in 30cd987. I removed the private intra-doc link in src/cli/config.rs module docs (changed it to plain code formatting), and RUSTDOCFLAGS='-D warnings' cargo doc --workspace --no-deps --all-features now passes locally.

@copilot fix rustdoc failing ci

Addressed in 30cd987. The rustdoc failure was from a private intra-doc link in src/cli/config.rs; I replaced it with plain code text, and rustdoc with -D warnings passes locally now.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 3 comments.

Comment thread src/tui/wizard.rs
Ev::Continue
}
KeyCode::Char(c) => {
s.test_input.push(c);
Comment thread src/cli/start.rs
Comment on lines +6 to +16
//! and, if the user opted into AI plan generation, chains into
//! `pitboss play --tui`. End-to-end install → configure → plan → play in
//! one command.
//! - **Present:** runs the iteration wizard ([`crate::tui::iteration`]) which
//! shows a snapshot of the current run (budget used, phase progress,
//! deferred items) and offers continue / sweep / new-plan paths, each with
//! an optional reset-budget toggle.
//!
//! This command is purely additive: it composes existing pitboss commands
//! (`setup`, `plan`, `play`, `rebuy`, `sweep`). It does not change their
//! behavior or schemas.
Comment thread src/cli/start.rs
Comment on lines +196 to +198
super::sweep::run(workspace, default_sweep_args())
.await
.map(|_| ())
@elicpeter elicpeter marked this pull request as ready for review May 25, 2026 04:19
@elicpeter elicpeter merged commit 0b76052 into main May 25, 2026
10 checks passed
@elicpeter elicpeter deleted the copilot/fix-comments-in-review-thread branch May 25, 2026 04:20
@elicpeter elicpeter restored the copilot/fix-comments-in-review-thread branch May 25, 2026 04:22
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.

4 participants