Repository navigation
Tags
Tags
chore(deps): bump the go_modules group across 1 directory with 5 upda… …tes (#77) * chore(deps): bump the go_modules group across 1 directory with 5 updates Bumps the go_modules group with 5 updates in the / directory: | Package | From | To | | --- | --- | --- | | [github.com/go-git/go-billy/v6](https://github.com/go-git/go-billy) | `6.0.0-20260226131633-45bd0956d66f` | `6.0.0-alpha.1` | | [github.com/go-git/go-git/v6](https://github.com/go-git/go-git) | `6.0.0-20260320111621-ea91339c5263` | `6.0.0-alpha.5` | | [golang.org/x/crypto](https://github.com/golang/crypto) | `0.48.0` | `0.54.0` | | [golang.org/x/image](https://github.com/golang/image) | `0.24.0` | `0.41.0` | | [golang.org/x/net](https://github.com/golang/net) | `0.50.0` | `0.57.0` | Updates `github.com/go-git/go-billy/v6` from 6.0.0-20260226131633-45bd0956d66f to 6.0.0-alpha.1 - [Release notes](https://github.com/go-git/go-billy/releases) - [Commits](https://github.com/go-git/go-billy/commits/v6.0.0-alpha.1) Updates `github.com/go-git/go-git/v6` from 6.0.0-20260320111621-ea91339c5263 to 6.0.0-alpha.5 - [Release notes](https://github.com/go-git/go-git/releases) - [Changelog](https://github.com/go-git/go-git/blob/main/HISTORY.md) - [Commits](https://github.com/go-git/go-git/commits/v6.0.0-alpha.5) Updates `golang.org/x/crypto` from 0.48.0 to 0.54.0 - [Commits](golang/crypto@v0.48.0...v0.54.0) Updates `golang.org/x/image` from 0.24.0 to 0.41.0 - [Commits](golang/image@v0.24.0...v0.41.0) Updates `golang.org/x/net` from 0.50.0 to 0.57.0 - [Commits](golang/net@v0.50.0...v0.57.0) --- updated-dependencies: - dependency-name: github.com/go-git/go-billy/v6 dependency-version: 6.0.0-alpha.1 dependency-type: direct:production - dependency-name: github.com/go-git/go-git/v6 dependency-version: 6.0.0-alpha.5 dependency-type: direct:production - dependency-name: golang.org/x/crypto dependency-version: 0.54.0 dependency-type: indirect - dependency-name: golang.org/x/image dependency-version: 0.41.0 dependency-type: indirect - dependency-name: golang.org/x/net dependency-version: 0.57.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * fix(git): adapt to go-git v6 alpha APIs --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
fix(terminal): improve throughput, resizing, and idle CPU (#97) * fix(terminal): improve output throughput and session interactions * chore: keep terminal follow-up notes in the PR * fix(terminal): render visible rows only and keep the viewport on resize - Draw only the scrollback rows inside the viewport. Fyne's TextGrid built two canvas objects per cell for every buffered row with an O(rows²) layout, freezing the app for 30-40 s on zoom/resize with long history. - Keep following the newest output across Expand/Restore and a hidden drawer; keep a reader's place in history. - On shrink, drop blank rows below the cursor before pushing the screen into history, matching conhost, so ConPTY's repaint no longer duplicates the prompt in scrollback. - Ignore negative layout sizes instead of wrapping the row count. - Send CR for keypad Enter so PowerShell runs the line instead of showing a continuation prompt. - Title the restart confirmation "Restart terminal session?". - Move the misplaced TypedKey doc comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: cut idle CPU from process listing and harden tests - Read parent PIDs from one Toolhelp snapshot on Windows. gopsutil's per-process Ppid takes a full system snapshot each call, so every 5 s refresh cost ~1 s of CPU (~25% of a core while idle); a listing now takes ~28 ms. Enrich no longer re-reads a known parent. - Replace arrow glyphs missing from Fyne's default font in the help bar. - Disable commit signing in test repos so a global commit.gpgSign=true does not make go-git refuse test commits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(terminal): scroll without Scroll.Scrolled to avoid a macOS race With overlay scrollbars (macOS), Scroll.Scrolled arms a scroll-end timer whose fyne.Do runs inline on the timer goroutine under the test driver, racing with later tests. Move the offset and fire OnScrolled directly, which is what a wheel event does, minus the timer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
feat(terminal): support native Windows terminal launches (#90) * feat(terminal): support native Windows terminal launches Launch host and sandbox sessions through Windows Terminal or PowerShell, preserve argument data and track the host shell to prevent duplicates. Add native Windows integration tests and a dedicated CI log artifact. Windows Terminal activation requires manual switching; classic consoles support guarded activation. Desktop acceptance remains pending. * test(terminal): compare Windows working directories by identity Accept short and long Windows path aliases for the same directory while preserving exact argument validation. Report cwd and argv failures separately. * fix(sandbox): translate host worktree paths to container paths A linked sandbox worktree card ran `sbx exec -w <host path>`. On Windows the sandbox mounts the host workspace at its POSIX equivalent (C:\a\b -> /c/a/b), so the host spelling made the agent session fail with "OCI runtime exec failed: chdir ...: No such file or directory". ExecAgentArgs now routes workdir through the new sandbox.ContainerPath, which rewrites a drive-letter path to its mounted form and leaves POSIX paths (macOS, Linux) and UNC paths untouched. Verified against a live sandbox: the exec now chdirs into the worktree and starts the agent. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix(terminal): classify the Windows console host by window class Host detection treated any visible console window as a classic console. A Windows Terminal session the OS default-terminal setting delegated a PowerShell fallback into owns a ConPTY host that reports itself visible and carries no WT_SESSION, so it was recorded as a focusable classic console and its pseudoconsole handle was kept for activation. Detect the host by the console window class instead (ConsoleWindowClass vs PseudoConsoleWindow), and keep a handle only for a real classic console. The launch test shared the blind spot: its oracle for "is this Windows Terminal" was WT_SESSION, which delegation does not set, so it passed against the bug. It now uses the console class the shell reports, and two deterministic tests pin each host branch: wt.exe hosting the fallback script reproduces OS delegation, conhost.exe forces a classic console, so neither depends on the machine's default-terminal setting. The launched shell also deliberately moves only its PowerShell provider location and not its process working directory: Windows keeps an open handle on a process's working directory, so a shell that adopted the worktree would make removing it delete the contents and then fail on the directory itself. A regression test guards this. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * feat(terminal): focus the existing Windows Terminal window by name Pressing Enter on a card whose Windows Terminal session is already open now raises that window instead of reporting "Windows Terminal cannot be focused safely; switch to the existing window manually." Windows Terminal supports named windows (wt -w <name>), an identity assigned at launch that is independent of the tab title the shell or agent may overwrite. So the launcher names each tracked WT window after its unique marker-dir base (biomelab-session-<n>) instead of the "new" keyword, stores the name on the session, and activation raises it with `wt -w <name> focus-tab` via command.Background (no console window). Windows Terminal resolves the name to the right window and activates it; targeting a gone name is a no-op rather than a new window, and the pre-existing liveness check already guarantees the window still exists when we focus. The name is Biomelab-generated, never user data, so it stays clear of wt.exe's second command grammar. A Windows Terminal session the OS default-terminal setting delegated a PowerShell fallback into has no name Biomelab assigned; it keeps a clearer manual-switch message. The classic-console path is unchanged. Coverage: a deterministic test that windowsTerminalArgs names the window (and falls back to "new" unnamed); that a delegated session refuses focus with guidance; and a desktop integration test (gated on wt.exe) that launches a tracked WT session, overwrites its tab title, minimizes it, and asserts activation raises it by name -- which fails if the naming is removed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * docs: document Windows terminal focus, reuse, and sandbox worktree behavior Record the Windows behavior these changes establish and the limitations that remain, so the guides match the code: - Windows Terminal windows Biomelab launched are focused by their per-session name; the OS-delegated PowerShell fallback keeps a manual-switch message. Explains the cause (no assigned name; hidden pseudoconsole; empty WT_SESSION) and the workaround (leave BIOME_TERMINAL unset, or set the OS default terminal to the console host). - Console host detection keys on the window class, not visibility. - Windows sessions are not rediscovered after a restart, because a launched shell deliberately does not adopt the worktree as its process working directory (Windows would lock it against worktree removal). - Sandbox linked-worktree cards translate host paths to container paths, and the remaining gitdir portability gap. Updates ARCHITECTURE.md, CLAUDE.md, docs/configuration.md, docs/known-limitations.md, docs/sandboxes.md, and the Windows terminal acceptance checklist in docs/windows-focus-validation.md. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
PreviousNext