Repository navigation
Tags
Tags
fix(browser): ask Linux for the page again while it stays idle (#185) On Linux the Browser asks WebKit again for the page's address while the page is idle and the address unchanged, so a navigation WebKitGTK dropped before the view was sized still loads. A newer address or a load in flight ends the asking.
fix(release): give the AppImage runtime a world-executable mode (#180) ## What The Linux packaging job seeds cargo-packager's AppRun cache with mode 0755 before packaging, so `cargo packager --formats deb,appimage` builds the x86_64 AppImage again. ## Why cargo-packager 0.11.8 writes the AppRun it downloads as 0764, and appimagetool refuses anything under 0755. `package (ubuntu-22.04)` failed and the v0.16.2 release stopped at its publish gate. ## Test plan - [ ] the re-dispatched 0.16.2 release builds `kagan_0.16.2_x86_64.AppImage` --------- Co-authored-by: aorumbayev <aorumbayev@users.noreply.github.com>
fix(core): a thread branch avoids a tag or pseudo-ref (#172) ## What A new thread whose title matches a name git already answers to somewhere else — a tag, or the `.git/opencode` file the OpenCode CLI leaves — now starts on `<name>-2` instead of failing with "refname is ambiguous". ## Why Starting an OpenCode thread died before the worktree existed, in both Terminal and Chat. ## How A name counts as free only when `git rev-parse --verify` finds nothing for it; checking branch names alone missed the pseudo-ref. ## Notes No issue to close; the report of the failure is this branch. ## Test plan - [x] New core test writes `.git/opencode`, starts a thread titled opencode, and expects branch `opencode-2`; it fails on the old code (verified) and passes with the fix. - [x] `cargo fmt --check`, clippy with `-D warnings`, and all 689 kg-core tests.
chore(deps): merge upstream into the forks (2026-11-19) (#162) Brings in upstream fixes for the forked GPUI dependencies. It also bundles this week's Dependabot bumps and moves kagan off the unmaintained `chrono` crate. | Fork | Upstream | Commits merged | Our changes left | New pin | |---|---|---|---|---| | gpui-kit | longbridge/gpui-kit@main | 119 | 32 commits, 40 files | `24732b63` on kagan/upstream-sync-2026-11-19 | | gpui-fast | longbridge/gpui-fast@main | 54 | 9 commits | `73941f88` on kagan/upstream-sync-2026-11-19 | | wry | longbridge/wry@dev | 0 | 9 commits | unchanged | - **gpui-fast 0.1.17:** gpui-kit 0.10 needs gpui-fast 0.1.17. So the patched copies in the fork now start from the published 0.1.17 crates, with kagan's offscreen patch and 4 Windows fixes on top. - **chrono → jiff:** upstream gpui-kit replaced `chrono` with `jiff`, and kagan's 5 uses follow. `chrono` had a new unmaintained warning (RUSTSEC-2026-0543). `cargo-deny` now passes without an ignore entry. - **Smaller test-only `image` build:** our gpui-kit fork builds this dependency without its default image formats. Upstream's new test helpers had pulled in an AV1 encoder that carries an NCSA-licensed crate. - **Dependency bumps:** rpassword 7.5.5, rusqlite 0.42.0, jsonschema 0.61.1. This replaces #158, #159, #160 and #161. - **gpui API change:** gpui now implements `IntoElement` for every `Element`, so kagan's two hand-written versions are removed. Upstream now has: none of our commits yet. Can switch to upstream: none yet. Blocked: none. Conflicts resolved, all in gpui-kit: - Markdown: kept our soft-break option alongside upstream's raw-HTML option and white-space folding. - Webview: kept our retry helper and added upstream's redraw. - Shell: kept `namespace: None`. Checked: fmt, clippy, tests (2352 pass), size budget, notices, cargo-deny, independent review. Windows and Linux are proven by CI.
feat(ui): let the right sidebar widen and narrow to the room (#156) The right sidebar can be dragged until the center reaches its 480 px minimum, and a wide saved width narrows to the room instead of hiding the sidebar. The left sidebar keeps its width during a right drag. gpui-kit is pinned to kagan-sh/gpui-kit#3 (decision 278).
fix: build release without the test-only import (#148) ## Cause The \`OsString\` import in \`crates/core/src/usage/claude.rs\` was used only by the \`#[cfg(any(test, feature = "test"))]\` variant \`Search::Path\`. A non-test build warned "unused import". CI linted only with \`--all-targets\`, which turns the test cfg on, so the warning never reached a job. ## Change - The variant names \`std::ffi::OsString\` itself, and the top-level import is gone. - Linux clippy also lints the product without \`--all-targets\`: \`cargo clippy --workspace --locked -- -D warnings\`. ## Proof - With the old file restored, the new clippy step fails with \`unused import: std::ffi::OsString\`. - With the fix, the product clippy, the \`--all-targets\` clippy, \`cargo fmt --check\`, and \`cargo t -p kg-core usage\` (35 passed) all pass locally.
feat(ui): agent icons and a card grid in the thread picker (#145) ## What - The new-thread program picker shows each known agent as a card with its own mark (Claude, Codex, Gemini, Cursor, Kimi, OpenCode, GitHub Copilot). Amp and Aider keep their letter. - Cards are in a three-column grid, three rows high, then it scrolls. Custom command is a small outlined button under the grid, with the terminal icon. It opens the program line fields. - Keys: arrows move across the cards once the grid has focus, Enter starts the selected card, Tab reaches the grid and then the Custom command button, which Enter opens. - Search and custom fields show one focus ring, the field border in the focus token. - Marks are bundled SVGs keyed by command name, one table in `picker/mark.rs`, with a test that every path is bundled. Licences and attribution are in `assets/agents/README.md` and `assets/THIRD-PARTY-NOTICES.txt`. ## Screenshots - Light: the picker with nine agent cards, the search field focused, and the small Custom command button under the grid. - Dark: the same picker in the dark theme, with the single focus ring on the search field. ## Notes - Decision 271 in `docs/decisions.md`; `docs/look.md` and `docs/behaviour.md` describe the picker. - Size ceiling is exact at 82781 with a Cost line. - Gemini can drop its version when the real CLI answers `--version` after the picker's 3 s limit; the limit is unchanged. - Gate at the pushed commit: fmt, clippy `-D warnings`, `cargo nextest run --workspace --locked` (2309 passed), `kg` builds, repo scripts pass.
feat: branch prefix, terminal switches, removable keys, fonts, densit… …y, theme preview and plugin updates (#118) ## Summary A bundle of small settings: - **Branches:** `branch-prefix` goes in front of branch names kagan picks. It must end in `/` or `-`. - **Terminal:** copy on select, and links open in the Browser tab (Cmd/Ctrl-click, web links only). - **Keys:** a built-in shortcut can be removed. It stays listed with Bind and Reset. - **Appearance:** Density (Compact / Default / Roomy), UI font and Terminal font pickers, and a theme card preview on hover or focus. - **Plugins:** `kg plugin outdated` checks git plugins with `git ls-remote`. `kg plugin update --all` updates them and skips any plugin whose update adds powers, listing it as needing approval. Installed has a Plugin updates row. Decisions 222 to 229 and 230 record the choices. The product Rust ceiling is set to the measured count, 76082. ## Testing - Full workspace suite passes with `--no-fail-fast`. - Clippy with `-D warnings`, fmt, and the repo scripts pass. - Behaviour tests were shown failing before their fixes; guard mutations were run and restored. - The Browser page path for links is covered only by the headless fallback.
refactor: untangle the codebase and refresh its dependencies (#108) Untangles the workspace so pieces that change together sit together, refreshes the forks and dependencies, and reworks four parts of the window that confused people. ## What changed **Untangle (no behaviour change except the fixes below)** - One owner per shared fact: thread status rules, preference keys, the 1 MiB text cap, screen limits, the `git:` source prefix, the typing quiet, preview image caps, agent program names. - Core: one run record and one pending-question map per workspace; one git runner; each `ThreadOp` matched once. - Plugins: one typed way to ask a plugin; thread calls built as typed `ThreadOp` values; host modules registered from tables; the plugin folder layout owned by core. - UI: the main `Kagan` struct split into feature groups; one thread menu for the title bar and the row; one dispatch-then-report helper; one front-window shell. - Spec changes (decisions 183 to 192): the Start screen reads its setup script through core; `kg_process` owns the Unix tree kill; socket-only rules live in `dispatch_for`; the socket is a `Workspace::open` parameter; interaction options say which one is safe and which destructive; the keychain belongs to plugins; `kg ui` shows the web panel hint; plugins own the facts core used to parse. - Product Rust: 70,092 → 69,448 lines. **Bugs fixed (each with a test that failed before)** - A plugin theme id was not checked as a plugin id. - A running plugin could stay paused after an early return. - A plugin command's error text could show plugin secrets. - A notice click did nothing before the plugin host started. - A sidebar row's menu acted on the shown thread, not its own row. - Nested thread rows pushed their actions past the sidebar edge. - The review panicked when a file changed under its diff. - The New thread screen could start a program scrolled out of sight. - An empty `KG_DATA_DIR` or `HOME` was treated as set. - Kimi skill folders ignored the Kimi folder override. **Window** - Thread marks: each state has its own shape and a tooltip, not color alone (decision 195). - Bottom strip: each part is a real button; the log sits behind one labeled "Activity log" button (`kg window toggle-activity-log`); plugin status items can run their own command (decisions 196, 197). - New thread screen: pinned form, 8 rows with "N more", one-line folder sentence, keyboard focus rings, Enter starts (decisions 198 to 200). - An ended thread offers "New thread here…" to start any program in the same folder (decision 199). **New: a child tells its parent** (decision 201). A child started with `--parent-thread-id` types one line into the parent's program when its turn ends, it asks the person, exits or fails. It waits while the parent is busy or the person has an unsent draft. `kg thread run --quiet` turns it off. **Rules and docs** - `AGENTS.md` order of truth: code and tests, then enforced rules, then `docs/`. Per-crate `AGENTS.md` for store, domain, ui, plugins and kg. - New checks in CI and pre-push: `scripts/decisions-check.sh`, `scripts/test-env-check.sh`. - Lints: `allow_attributes_without_reason`, `undocumented_unsafe_blocks`. `assert_is_empty` (new in clippy 1.99) is allowed: its fix reads worse. **Performance and safety** - The 1 s sweep deletes saved screens only when it releases one; saved screens restore off the main thread; the login-shell PATH is read off the main thread; the diff cache is bounded; detached ops log their failure. - The flaky socket test is fixed (pid-keyed temp folders); tests no longer read `KG_*` or the person's agent folders. **Dependencies** - Rust 1.99.1. - gpui-kit fork: 95 upstream commits merged (`52e47a4`). gpui-fast fork: 74 upstream commits (v0.1.14) merged, our four Windows crash fixes carried onto upstream's device recovery (`9501036`). wry already current. - rusqlite 0.41 (RUSTSEC-2026-0459); latest patch releases; plain `cargo update`. ## Checked fmt, clippy `-D warnings`, 1779 tests, size budget, crate boundaries, glossary, view colors, decisions and test-env checks, pre-push hook test; CI on Linux, macOS and Windows; macOS smoke test. ## Needs a person - **Windows, strip see-through:** unproven cause. Open a thread running `seq 1 5000` with the VSCodium panel open, open the activity log, screenshot; repeat with `GPUI_VIEW_RETENTION=0`, then `GPUI_SCROLL_LAYERS=0`. If either clears it, the bug is in gpui-fast. - **Windows, gpui-fast:** the lost-device and window-procedure-panic paths compile and pass CI but never ran on real hardware. After 5 failed recoveries the window now stays up and stops drawing (upstream crashed). - **Minimize and Zoom** from the menu have no test. - **Recovery keep-block** (`workspace/recovery.rs`, `resume_programs`): kept because a killed resume can leave a thread Idle; its mutant stays alive until a test-only `Workspace::open` hook exists. - The Windows GDI leak fix (`ui_driver.rs`) was checked by reading only.
PreviousNext