Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and resulting behavior
This makes the community fork usable natively on Windows ARM64 with a local model. The CLI could compile yet fail at OpenTUI FFI startup; offline fallback paths could retrieve remote resources; image decoding failures could return an unhelpful response or lose the draft. Windows image input also missed Explorer file-list clipboard data and quoted paths, while host terminals can intercept Ctrl+V.
The change adds the ARM64 build target and documents the tested Bun 1.4.4 runtime. Offline startup requires bundled dependencies and UI assets. JavaScript fetch guards allow loopback and local embedded resources while rejecting external destinations and redirects; the web UI receives a restrictive CSP. The two named file-edit MCP tools require a fresh approval per call.
Images share one validation/normalization boundary across prompts, files and tools. Bundled AVIF decoding produces PNG/JPEG locally; malformed data returns a readable HTTP 400 before message persistence and streaming headers. The TUI restores failed drafts.
Windows clipboard input now supports bitmap images, Explorer file lists and quoted image paths with spaces or Unicode. Local fixed-drive, resident-file and size checks precede reads. Clipboard helpers use hidden STA PowerShell with UTF-8 output, timeouts and output limits. Windows defaults include Alt+V, and the prompt displays a clickable image-paste action so terminal Ctrl+V bindings do not make the feature inaccessible.
Validation
Limits
Physical mouse dragging and terminal delivery of Alt+V were not automated. The visible binding, native clipboard reader and terminal path-input flow were checked separately. Failed-draft restoration was reviewed in source; backend rejection/recovery was exercised. These are functional checks, not performance, maximum-context or model-quality benchmarks.
The fetch guard and CSP are application controls, not an OS egress sandbox; raw sockets, child processes and independent workers can use other network stacks. Browser packet capture and the Linux container suite were not rerun. See
docs/windows-arm64-offline.mdfor build steps and limits.Only reusable community source, tests and documentation are included. No executables, model weights, private configuration, user images, chats or raw local logs are published.