Repository navigation
Remove Research Agent Mode; point the Agent tab to Maple Work - #1336
Merged
Merged
Conversation
Agent Mode (embedded Goose, ACP agent connections, MCP, agent tools and the native Maple API session) has moved to Maple Work (apps/maple-agent). Research keeps only the desktop Chat | Agent switch for accounts with the agent_mode flag. The Agent page thanks beta testers, links https://maple.ai/work/download and explains how to open old tasks with v3.4.5. - Native: delete agent*, maple_api and their 41 commands; drop goose, goose-providers, rmcp, agent-client-protocol, tauri-plugin-dialog and the other agent-only crates (Cargo.lock 1012 -> 844 packages, removals only). `maple acp` prints the Maple Work pointer and exits 1. Quitting still waits for an in-progress update install. Drop the Windows 8 MiB stack reserve that existed for Goose futures. - Frontend: delete the Agent Mode UI, services, Agent connections settings and their tests. The switch no longer has a plan gate; in Agent the sidebar shows only the switch and account menu. The local proxy is still reset on every sign-out and on implicit account changes. History and account deletion copy covers chats only. - Local Agent data and its localStorage keys are left untouched so v3.4.5 can still open old tasks. - Docs, skills and CI follow; the Research Rust CI cache key is bumped so the Goose git database is no longer restored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With prefers-reduced-motion the switch navigated from inside the radio's change handler. Going back to Chat pushed "/" to history there, which changed the URL but left the router on /agent, so the app stayed on the Agent page. Run the navigation after the event instead; the animated path already does, from transitionend. Reproduced on master and fixed here in the Tauri app and in Chrome with and without reduced motion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Maple development preview: https://f52266a9.maple-ca8.pages.dev Commit: Uses development API, billing, flags and PCR configuration. Cloudflare Access applies. |
AnthonyRonning
added a commit
that referenced
this pull request
Oct 28, 2026
agent-supply-chain and agent-provider had no cache, so every run cloned the zed and trycua/cua git dependencies from GitHub only to run `cargo metadata`: 0.3-11 min of fetching against 1.1-2.4 min of real work (job 122541527929 on PR #1336: 5.4 min on cua, 4.7 on zed). Both lanes ran at p90 10.7 min and are selected on about 30% of PRs. They now share one rust-cache entry, agent-cargo-home, that holds only the Cargo home (registry index and crates, git databases and checkouts): a new lane field, cache_targets=False, drops the target directory. PRs restore it; master pushes and the nightly run save it into the lanes' home store, like every lane cache. These lanes run on the PRs that edit Cargo.lock, where the prefix fallback from the previous commit restores master's last graph, so Cargo fetches only what changed. Expected p90: about 2.5 min. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AnthonyRonning
added a commit
that referenced
this pull request
Oct 28, 2026
…et checkout (#1342) * ci: restore lane caches by prefix after a lockfile change Every ci.yml lane cache was keyed by sha256(flake.lock + Cargo.lock) in rust-cache's shared key with add-rust-environment-hash-key off, so the restore key equalled the cache key and any Agent Cargo.lock edit made every Agent Rust lane fully cold. That hit 25% of PRs, two thirds of them version bumps: PR #1338 (a version bump) took 10.6 min to ci-ok instead of about 4.5, and its master push 18.6 min instead of about 10.5. - The shared key now holds only the toolchain pins (flake.lock, and rust-toolchain.toml where the workspace has one), which must match. - rust-cache's environment hash (rustc versions, CARGO*/RUST* variables) ends the restore key, and its lockfile hash (third-party Cargo.lock entries, member manifests with versions zeroed) ends only the cache key (config.ts at e18b4977). A version bump restores its exact cache; any other lockfile change restores the newest cache of the same lane and toolchain. Of the last 30 Agent Cargo.lock commits, 13 keep the exact key and 17 fall back by prefix; today all 30 start cold. - The environment hash also covers the runner image's preinstalled rustup toolchains, so an image with a new Rust costs one cold run per lane until master saves again. - Prefix ci-v2, so no lane cache can fall into the ci-v1 release families; a C4 contract test pins that and the rust-cache flag. - agent-windows-updater also runs on master pushes (free windows-2025), so a master lockfile change saves its cache instead of leaving PRs cold until the nightly run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: cache the Agent's Cargo home for its dependency lanes agent-supply-chain and agent-provider had no cache, so every run cloned the zed and trycua/cua git dependencies from GitHub only to run `cargo metadata`: 0.3-11 min of fetching against 1.1-2.4 min of real work (job 122541527929 on PR #1336: 5.4 min on cua, 4.7 on zed). Both lanes ran at p90 10.7 min and are selected on about 30% of PRs. They now share one rust-cache entry, agent-cargo-home, that holds only the Cargo home (registry index and crates, git databases and checkouts): a new lane field, cache_targets=False, drops the target directory. PRs restore it; master pushes and the nightly run save it into the lanes' home store, like every lane cache. These lanes run on the PRs that edit Cargo.lock, where the prefix fallback from the previous commit restores master's last graph, so Cargo fetches only what changed. Expected p90: about 2.5 min. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: blobless full-history checkout for the OpenSecret lanes The OpenSecret jobs need full history (Nix requires revCount for the recursively fetched submodule), and on Blacksmith that clone has been slow since 10-27: checkout p50/p90/max os-eif 231/557/601 s, os-rust 76/475/527 s, os-sdk-e2e 21/333/427 s (job 122029252679 spent 8 min in "Fetching the repository"). The plan job already clones the same history blobless in 5-17 s. os-rust, os-flake-check and deps-opensecret (through a new `filter` matrix field from the planner), os-sdk-e2e and the os-eif PR candidate now check out with filter: blob:none, keeping fetch-depth 0 and recursive submodules: every commit and tree, but file contents only for the checked-out tree (39 MB instead of 346 MB). The submodule is still fetched in full. opensecret-eif-release.yml and the PCR checks are unchanged. Nix sees byte-identical source. Emulating actions/checkout on 7cdc65c with Determinate Nix 3.24.0, a full clone (20 s, 346 MB) and a blobless clone (7 s, 39 MB) give the same `git ls-files -s --recurse-submodules` digest, submodule commit and working tree, the same flake source (revCount 4091, narHash sha256-2mRvfa57+T2G0pQzpclNWod339i++bnhkfqFXHHy0D8=, one store path) and the same derivations for eif-dev, eif-prod, the ci dev shell and every checks.x86_64-linux entry. Git objects are content addressed, so a missing blob could fail a build but never change its source. Expected: os-rust p90 about 9.3 to 4.4 min, os-sdk-e2e p90 9.8 to 5.7, os-eif up to 10 min less checkout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: address review findings rust-cache's save keeps every build of a crate still in the dependency graph, so a master run that restored by prefix would carry the old graph's builds into each new cache. A master run that will save a cache without an exact hit now deletes the lane's target directory first; pull requests keep the prefix fallback and version bumps stay exact hits. The lane cache contract also checks that step, and checks key overlap in both directions, including other workflows' rust-cache steps. The cache docs name the Windows lanes' toolchain pin correctly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
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.
Summary
Removes Maple Research's desktop Agent Mode: embedded Goose, ACP "Agent connections", MCP, agent tools and permissions, project folders and tasks, and the native Maple API session that only Agent Mode used. Maple Work (
apps/maple-agent) replaces it.The only piece kept is the sidebar Chat | Agent switch for desktop accounts with the
agent_modeflag. Choosing Agent opens a static page in the main view:154 files, +460 / −58,873.
Behaviour
agent_modeis on, and always while the user is in Agent so they can get back. There is no plan gate any more: theUpgradePromptDialog"agent" variant and the billing check are gone. The last-used mode is still restored at launch and reset to Chat on sign-out and account deletion, as before.agent/andacp/app-data dirs, Goose session DBs, attachments and the Agent localStorage keys stay as they are, so v3.4.5 can still open old tasks. Delete history and Delete account now cover chats only, and their copy says so.maple acpprintsMaple agent connections have moved to Maple Work: https://maple.ai/work/downloadto stderr and exits 1, instead of launching the GUI for stale ACP client configs.--versionis kept.routes/__root.tsxnow covers implicit account changes, which Agent Mode's auth lifecycle used to handle. The legacymaple-agent-*proxy-key registry is removed.history.push("/")changed the URL but left the router on/agent. Navigation now runs after the event.Dependencies and CI
io-std/process. tokiofsis now declared explicitly.Cargo.lockgoes from 1012 to 844 packages, removals only: no remaining package changed version or checksum. The aaif-goose git source is gone; pdf_oxide is the only git dependency left.@tauri-apps/plugin-dialogand@radix-ui/react-hover-card;bun.lockchanges are removals only.dialog:defaultandopener:allow-reveal-item-in-dir.ci-v1-research-rusttoci-v2-research-rustin every reader and writer, so the ~1 GB Goose git database stops being restored. The first master run after merge starts cold. No timeouts changed.change-maple-agent-modeskill anddocs/agent-mode-{acp,mcp}.md. AGENTS/README/development-contracts, validate-maple (new Agent placeholder smoke), review-maple-security and the Research-fact lines inapps/maple-agentdocs now describe the current app.cargo clippy --all-targets -- -D warningsfor Research now passes. It failed on master, only in agent files.Labels
ci:packageandci:windowsare set so the Windows build compiles here. This Mac cannot build Windows or Linux, and those lanes cover the stack-reserve removal and the droppedwindows/libccrates.Validation
Local mde workspace (OpenSecret, billing, flags; Pro fixture with
agent_modeon, Free fixture with it off; debug Tauri app from this worktree):Checks:
build:fast.deps-researchcargo-deny,scripts/ci(503 tests), actionlint, flakeci-scripts/workflowschecks.Not in this PR
agent_modeon for the beta cohort. It gates the switch here and Agent Mode in v3.4.5, and billing also uses it as the Maple Work beta-discount cohort.agent_connectionshas no reader in new builds. Archive it once v3.4.5 is no longer a supported rollback./v1/agentmethods) is a separate feature that neither Research nor Maple Work calls. It is left as is.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.