Repository navigation
Fix stale code references in Agent component docs - #942
Merged
Merged
Conversation
CLAUDE.md cited rebuild_project_groups as the precompute exemplar, but that function was renamed to Sidebar::rebuild_sections in ui/chat/sidebar.rs. README.md claimed app/src/backend.rs is the only file that imports maple_agent. UI modules now import shared data types from maple_agent directly; backend.rs remains the only file that drives the runtime, holding the private Tokio runtime, the AgentBackend facade, and the single event stream. Both pass a full scan of the remaining component docs (README, CLAUDE.md, docs/) against the source: the 159 keyboard bindings claim is pinned by a keymap.rs assertion, and env vars, file paths, CLI modes, just recipes, scripts, and theme tokens all match.
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.
Surfaced while auditing the GPUI project's docs against its source.
Drift fixed
apps/maple-agent/CLAUDE.md: citedrebuild_project_groupsas the precompute-outside-render exemplar. That function was renamed; the pattern lives on inSidebar::rebuild_sections(ui/chat/sidebar.rs).apps/maple-agent/README.md: claimedapp/src/backend.rsis the only file that importsmaple_agent. UI modules now import shared data types frommaple_agentdirectly (AgentTimelineItem,AgentSessionSummary, etc. inui/chat/{cache,composer,sidebar,transcript,...}.rs). The actual boundary —backend.rsowns the private Tokio runtime, theAgentBackendfacade, and the single event stream; the UI drives the runtime only through the facade — is unchanged and now stated that way.What verified clean (not drift)
Same scan, held up against the source:
assert_eq!(catalog.len(), 159)inkeymap.rs, so it self-corrects rather than drifts.MAPLE_API_URL…MAPLE_ENABLE_CORS), CLI modes, and the status-2 exit for compiled-out modes matchmain.rs.justrecipes,MAPLE_GPUI_DISABLE_SHARED_CARGO_BUILD_DIR, log paths, and file-location tables match the justfile and source.docs/brand.mdtheme tokens are macro-generated intheme.rsand all present;docs/embedded-cua.mdreferences (embedded_cuacfg,resources/gnome-helper/,UPSTREAM_SOURCE_REVISION) exist.Docs-only change; no behavior or packaging impact.