Skip to content

Fix stale code references in Agent component docs - #942

Merged
AnthonyRonning merged 1 commit into
masterfrom
maple-agent-doc-drift
Sep 15, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
maple-agent-doc-drift

Conversation

@AnthonyRonning

Copy link
Copy Markdown
Contributor

Surfaced while auditing the GPUI project's docs against its source.

Drift fixed

  • apps/maple-agent/CLAUDE.md: cited rebuild_project_groups as the precompute-outside-render exemplar. That function was renamed; the pattern lives on in Sidebar::rebuild_sections (ui/chat/sidebar.rs).
  • apps/maple-agent/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 (AgentTimelineItem, AgentSessionSummary, etc. in ui/chat/{cache,composer,sidebar,transcript,...}.rs). The actual boundary — backend.rs owns the private Tokio runtime, the AgentBackend facade, 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:

  • The "159 bindings" keyboard-shortcut claim is pinned by assert_eq!(catalog.len(), 159) in keymap.rs, so it self-corrects rather than drifts.
  • All documented env vars (MAPLE_API_URL … MAPLE_ENABLE_CORS), CLI modes, and the status-2 exit for compiled-out modes match main.rs.
  • just recipes, MAPLE_GPUI_DISABLE_SHARED_CARGO_BUILD_DIR, log paths, and file-location tables match the justfile and source.
  • docs/brand.md theme tokens are macro-generated in theme.rs and all present; docs/embedded-cua.md references (embedded_cua cfg, resources/gnome-helper/, UPSTREAM_SOURCE_REVISION) exist.

Docs-only change; no behavior or packaging impact.

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.
@AnthonyRonning
AnthonyRonning merged commit 4178b1c into master Sep 15, 2026
25 checks passed
@AnthonyRonning
AnthonyRonning deleted the maple-agent-doc-drift branch September 15, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant