Skip to content

fix(windows): prevent Agent task creation stack overflow - #821

Merged
AnthonyRonning merged 3 commits into
masterfrom
codex-maple-818-stack-maple
Aug 22, 2026
Merged

AnthonyRonning merged 3 commits into
masterfrom
codex-maple-818-stack-maple

Conversation

@AnthonyRonning

Copy link
Copy Markdown
Contributor

Summary

  • heap-box the Agent session-creation future before it crosses Tauri's IPC boundary, without adding a detached task or changing cancellation behavior
  • reserve an 8 MiB stack for the x86_64-pc-windows-msvc Maple executable
  • pin the boxed command signature at compile time and apply the large-future/large-stack Clippy guard only at this boundary

Fixes #818.

Validation

  • repository pre-commit hook (Prettier, frontend production build/tests, and Rust tests)
  • nix develop --no-update-lock-file .#ci -c just rust-lint
  • focused boxed-signature Rust test
  • isolated opensecret-workspaces backend smoke
  • nix develop --no-update-lock-file .#ci -c just desktop-build-debug-overlay
  • exact packaged macOS app smoke: local Pro login, isolated project selection, New Task creation through native IPC, active task/composer verification, and clean app exit

Windows runtime behavior was not exercised locally; this draft relies on the existing Windows PR build for the target-specific build signal.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying maple with  Cloudflare Pages  Cloudflare Pages

Latest commit: b5d4d5a
Status: ✅  Deploy successful!
Preview URL: https://337a7d83.maple-ca8.pages.dev
Branch Preview URL: https://codex-maple-818-stack-maple.maple-ca8.pages.dev

View logs

@AnthonyRonning
AnthonyRonning marked this pull request as ready for review August 22, 2026 17:29
@AnthonyRonning
AnthonyRonning merged commit b16df6e into master Aug 22, 2026
20 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-maple-818-stack-maple branch August 22, 2026 17:29
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.

[Windows][Agent Mode] v3.3.5 crashes with STATUS_STACK_OVERFLOW when creating a new task

1 participant