Skip to content

feat: full Windows compatibility, mantis-ui compat crate, shots & bundle scripts - #2

Closed
sushilm20 wants to merge 16 commits into
mainfrom
feat/windows-support
Closed

sushilm20 wants to merge 16 commits into
mainfrom
feat/windows-support

Conversation

@sushilm20

Copy link
Copy Markdown

What and why

  • Add ZOGWORK/mantis governance (AGENTS.md, CLAUDE.md, .github/pull_request_template.md, hardened .github/workflows/ci.yml).
  • Add cross-platform user paths (mantis_core::paths), Win32 local_day & GetProcessTimes, Windows CLI discovery (.exe/.cmd/.bat), pure-Rust hayro PDF page rendering, Win32 snapshot.rs (PrintWindow + PostMessageW), and Windows keybindings.
  • Add �endor/mantis-ui compatibility crate for GPUI 0.2.2.
  • Add scripts/shots.ps1 and scripts/bundle.ps1 ( arget/Mantis-windows-x64.zip).

Screenshots

Captured with .\scripts\shots.ps1 on Windows:

Tests

  • cargo test --workspace passed on Windows across all 10 crates.
  • .\scripts\shots.ps1 & .\scripts\bundle.ps1 verified in release mode.

Mantis Windows (dark theme, Parts tab)

Mantis Windows (light theme, Checks tab)

@sushilm20

Copy link
Copy Markdown
Author

@loopyreviews-bot review

Comment thread crates/mantis-agent/src/models.rs Resolved
Comment thread scripts/bundle.ps1 Resolved
Comment thread vendor/mantis-ui/src/assets.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread crates/mantis-app/src/projects.rs Resolved
Comment thread scripts/shots.ps1 Resolved
Comment thread vendor/mantis-ui/src/anim.rs Resolved
Comment thread vendor/mantis-ui/src/theme.rs Resolved
Comment thread vendor/mantis-ui/src/toast.rs Resolved
@loopyreviews-bot

loopyreviews-bot Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Loopy review

Confidence: 4/5 — Only P2 findings are open.

Reviewed 5 of 37 changed files, skipping 1 ignored file(s).

This PR adds full Windows compatibility to the Mantis GPUI/Rust workspace alongside governance and CI scaffolding. It introduces cross-platform paths and Windows-specific implementations for CLI discovery, local-day/CPU-time, PDF rendering, snapshot capture and keybindings, plus the vendor/mantis-ui GPUI 0.2.2 compatibility crate. It also adds the Windows scripts/shots.ps1 capture and scripts/bundle.ps1 packaging scripts.

  • Governance/CI: AGENTS.md, CLAUDE.md, PR template and hardened CI workflow
  • Platform layer: mantis_core::paths, Win32 helpers, .exe/.cmd/.bat discovery, hayro PDF rendering and PrintWindow/PostMessageW snapshots
  • Compatibility crate: new vendor/mantis-ui components, input, theme, animation and toast modules
  • Tooling: screenshot and bundle PowerShell scripts for Windows release workflows

Open findings (2)

Finding Location
P2 Selected radio item loses checkmark with icon vendor/mantis-ui/src/components.rs:2498
P2 Keyboard caret leaves visible textarea area vendor/mantis-ui/src/input.rs:1187

Review passes: 4 ran (general, failure-paths, authorization, data-integrity) · 47 unit and lens pair(s) carried over from earlier reviews · 2 planned unit and lens pair(s) left out by the budget.

Reviews: 17 · last reviewed 9bc37b8 · harness muse/muse-wonder-1.0 · Reply @loopyreviews-bot review to re-run · @loopyreviews-bot remember <rule> to teach Loopy

@sushilm20

Copy link
Copy Markdown
Author

Fixed all 15 Loopy findings + ChatText truncation/layout.

@loopyreviews-bot review

Mantis Windows updated UI (dark theme, Parts tab)

Comment thread crates/mantis-agent/src/models.rs Resolved
Comment thread vendor/mantis-ui/src/assets.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/theme.rs Resolved
@sushilm20

Copy link
Copy Markdown
Author

Fixed all 15 Loopy review #2 findings and bumped CI check timeout to 90m.

@loopyreviews-bot review

Mantis Windows (dark theme, 70/30 split, all icons)

Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread crates/mantis-agent/src/models.rs Resolved
Comment thread crates/mantis-app/src/workspace/form.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
@sushilm20

Copy link
Copy Markdown
Author

Fixed all 13 Loopy review #3 findings.

@loopyreviews-bot review

Mantis Windows (verified after review #3 fixes)

Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
@sushilm20

Copy link
Copy Markdown
Author

Addressed all 9 review findings from review #4 in \

Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
… selection/IME/caret, harness cmd/stderr, popover/menu/button)
@sushilm20

Copy link
Copy Markdown
Author

Fixed all 12 review findings in \�1452bf\ and verified \cargo clippy --workspace --all-targets, \cargo test -p mantis-ui\ (3/3), \cargo test --workspace, and \scripts/shots.ps1\ on Windows.

@loopyreviews-bot review

Mantis Windows (theme=dark,tab=parts,chat=sample)

Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
@sushilm20

Copy link
Copy Markdown
Author

Fixed all 8 P2 findings from review #6 in \�dc88d6\ and verified \cargo clippy --workspace --all-targets, \cargo test -p mantis-ui\ (3/3), \cargo test --workspace, \scripts/shots.ps1, and \scripts/bundle.ps1\ on Windows.

@loopyreviews-bot review

Mantis Windows (theme=dark,tab=parts,chat=sample)

Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
@sushilm20

Copy link
Copy Markdown
Author

Fixed all 5 P2 findings from review #7 in \�dbc34f\ and verified \cargo clippy --workspace --all-targets, \cargo test -p mantis-ui\ (3/3), \cargo test --workspace, \scripts/shots.ps1, and \scripts/bundle.ps1\ on Windows.

@loopyreviews-bot review

Mantis Windows (theme=dark,tab=parts,chat=sample)

Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
@sushilm20

Copy link
Copy Markdown
Author

Fixed all 8 P2 findings from review #8 in \�3db5db\ and verified \cargo clippy --workspace --all-targets, \cargo test -p mantis-ui\ (3/3), \cargo test --workspace, \scripts/shots.ps1, and \scripts/bundle.ps1\ on Windows.

@loopyreviews-bot review

Mantis Windows (theme=dark,tab=parts,chat=sample)

Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread crates/mantis-core/src/paths.rs Resolved
Comment thread scripts/shots.ps1 Resolved
Comment thread vendor/mantis-ui/src/anim.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
@sushilm20

Copy link
Copy Markdown
Author

Fixed all 7 P2 findings from review #9 in \

Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
@sushilm20

Copy link
Copy Markdown
Author

Fixed all 4 findings from review #11 in \85853b8\ and verified \cargo clippy --workspace --all-targets, \cargo test -p mantis-ui\ (3/3), \cargo test --workspace, \scripts/shots.ps1, and \scripts/bundle.ps1\ on Windows.

@loopyreviews-bot review

Mantis Windows (theme=dark,tab=parts,chat=sample)

Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
@sushilm20

Copy link
Copy Markdown
Author

Fixed all 3 P2 findings from review #12 in \e2b1104\ and verified \cargo clippy --workspace --all-targets, \cargo test -p mantis-ui\ (3/3), \cargo test --workspace, \scripts/shots.ps1, and \scripts/bundle.ps1\ on Windows.

@loopyreviews-bot review

Mantis Windows (theme=dark,tab=parts,chat=sample)

Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
@sushilm20

Copy link
Copy Markdown
Author

Fixed all 3 P2 findings from review #13 in \d17280f\ and verified \cargo clippy --workspace --all-targets, \cargo test -p mantis-ui\ (3/3), \cargo test --workspace, \scripts/shots.ps1, and \scripts/bundle.ps1\ on Windows.

@loopyreviews-bot review

Mantis Windows (theme=dark,tab=parts,chat=sample)

Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
Comment thread vendor/mantis-ui/src/input.rs Resolved
@sushilm20

Copy link
Copy Markdown
Author

Fixed all 5 findings from review #14 in \984dcac\ and verified \cargo clippy --workspace --all-targets, \cargo test -p mantis-ui\ (3/3), \cargo test --workspace, \scripts/shots.ps1, and \scripts/bundle.ps1\ on Windows.

@loopyreviews-bot review

Mantis Windows (theme=dark,tab=parts,chat=sample)

Comment thread crates/mantis-agent/src/harness.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
Comment thread vendor/mantis-ui/src/components.rs Resolved
@sushilm20

Copy link
Copy Markdown
Author

Fixed all 3 P2 findings from review #15 in \9bc37b8\ and verified \cargo clippy --workspace --all-targets, \cargo test -p mantis-ui\ (3/3), \cargo test --workspace, \scripts/shots.ps1, and \scripts/bundle.ps1\ on Windows.

@loopyreviews-bot review

Mantis Windows (theme=dark,tab=parts,chat=sample)

@sushilm20

Copy link
Copy Markdown
Author

@loopyreviews-bot review

1 similar comment
@sushilm20

Copy link
Copy Markdown
Author

@loopyreviews-bot review

@sushilm20

Copy link
Copy Markdown
Author

Superseded by PR #3 after 15 review iterations on PR #2.

Comment on lines +2498 to +2502
if let Some(icon) = self.icon {
d = d.child(Icon::new(icon).size(px(13.)).color(fg));
} else if self.checked {
d = d.child(Icon::new("check").size(px(13.)).color(fg));
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 · api-contract · Selected radio item loses checkmark with icon

In MenuItem::render, the checked checkmark is in an else if branch, so any item that also sets icon never shows its selected state. A caller building MenuContent::radio_group(Some(i), items) with MenuItem::radio(..).icon(..) items therefore gets a menu with no visible selection; render the checkmark alongside the icon instead of replacing it.

Trace

Prompt for AI agents
In ZOGWORK/mantis PR #2, file vendor/mantis-ui/src/components.rs lines 2498-2502:
Selected radio item loses checkmark with icon. In `MenuItem::render`, the `checked` checkmark is in an `else if` branch, so any item that also sets `icon` never shows its selected state. A caller building `MenuContent::radio_group(Some(i), items)` with `MenuItem::radio(..).icon(..)` items therefore gets a menu with no visible selection; render the checkmark alongside the icon instead of replacing it.
Trace: vendor/mantis-ui/src/components.rs:2500 (changed) -> vendor/mantis-ui/src/components.rs:2581 (reads).
Verify this is a real problem; if so, fix it with a minimal change and add a regression test.

Comment on lines +1187 to +1191
match handle_common_key(&mut self.buf, &mut self.value, false, ks, cx) {
CommonKeyResult::Moved => {
cx.notify();
return;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 · ux · Keyboard caret leaves visible textarea area

In a Textarea with max_height set (e.g. the 200px chat composer), pressing Home then Down repeatedly, or Up from the bottom, moves buf.cursor via handle_common_key but the Moved path only calls cx.notify(); maybe_scroll_end is invoked only on edits and only scrolls when the cursor is at the very end of the text. The caret therefore moves lines beyond the overflow_y_scroll viewport and stays invisible until the user scrolls manually or types at the document end.

Trace

Prompt for AI agents
In ZOGWORK/mantis PR #2, file vendor/mantis-ui/src/input.rs lines 1187-1191:
Keyboard caret leaves visible textarea area. In a `Textarea` with `max_height` set (e.g. the 200px chat composer), pressing Home then Down repeatedly, or Up from the bottom, moves `buf.cursor` via `handle_common_key` but the `Moved` path only calls `cx.notify()`; `maybe_scroll_end` is invoked only on edits and only scrolls when the cursor is at the very end of the text. The caret therefore moves lines beyond the `overflow_y_scroll` viewport and stays invisible until the user scrolls manually or types at the document end.
Trace: vendor/mantis-ui/src/input.rs:1188 (changed) -> vendor/mantis-ui/src/input.rs:1168 (defect) -> vendor/mantis-ui/src/input.rs:1436 (defect).
Verify this is a real problem; if so, fix it with a minimal change and add a regression test.

sushilm20 added a commit that referenced this pull request Dec 1, 2026
…dle scripts (#3)

* chore: add AGENTS.md, PR template, and CI workflow for ZOGWORK/mantis

* feat: full Windows compatibility, mantis-ui compat crate, shots & bundle scripts

* fix: address all Loopy findings, ChatText layout, and CI formatting

* fix: address all 15 Loopy review #2 findings and CI timeout

* fix: address all 13 Loopy review #3 findings

* fix: address Loopy review #4 (npm shim, IME/cursor editing, resizable split, menus/popovers)

* fix: address all 12 Loopy review #5 findings (scroll threshold, input selection/IME/caret, harness cmd/stderr, popover/menu/button)

* fix: address all 8 P2 findings from Loopy review #6

* fix: address all 5 P2 findings from Loopy review #7

* fix: address all 8 P2 findings from Loopy review #8

* fix: address all 7 P2 findings from Loopy review #9

* fix: address all 4 findings from Loopy review #11

* fix: address all 3 P2 findings from Loopy review #12

* fix: address all 3 P2 findings from Loopy review #13

* fix: address all 5 findings from Loopy review #14

* fix: address all 3 P2 findings from Loopy review #15

* fix: address all 4 P2 findings on PR #3 (fmt scope, CMake discovery, shot env cleanup, modal occlude)

* fix: address all 5 P2 findings from PR #3 review #3

* fix: snap slider endpoints across unaligned steps and isolate CI concurrency group

* fix: use per-PR concurrency group in CI workflow

* fix: address all 5 P2 findings on bundle.ps1 and shots.ps1

* fix: harden atomic staging, lock, and temp capture in bundle.ps1 and shots.ps1

* fix: address all 6 rollback, lock, subdir, and bounded-wait findings in bundle.ps1 and shots.ps1

* fix: preserve artifacts and surface cleanup/timeout failures in bundle.ps1 and shots.ps1

* ci: retrigger workflow after enabling fork Actions

* fix: validate screenshot extension, use literal paths, and persist orphan PID guard
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