Repository navigation
feat(graph): live watcher, /graph toggle, AgentSession wiring (PR3) - #443
Merged
Merged
Conversation
Completes the knowledge-graph phased plan: forge-graph now hash-aware rebuilds and keeps itself live via a debounced notify watcher; AgentSession holds the GraphHandle and exposes set_graph_enabled to pause/resume the watcher and hide find_definition/find_references from the model; the TUI gets a /graph [on|off] slash command wired to the same toggle. Claude-Session: https://claude.ai/code/session_01Tb5bxZgFovoKct29q9VEgs
3 tasks done
mohitranka
added a commit
that referenced
this pull request
Aug 26, 2026
* Revert "feat(graph): live watcher, /graph toggle, and AgentSession wiring (PR3) (#443)" This reverts commit aae0844. * Revert "feat(graph): extend symbol graph to Python, Go, TypeScript, JavaScript (PR2) (#442)" This reverts commit a58b6a2. * Revert "feat(graph): add repo-wide symbol graph, find_definition/find_references (PR1: Rust) (#441)" This reverts commit ea4c3b9.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
…3) (#443) Completes the knowledge-graph phased plan: forge-graph now hash-aware rebuilds and keeps itself live via a debounced notify watcher; AgentSession holds the GraphHandle and exposes set_graph_enabled to pause/resume the watcher and hide find_definition/find_references from the model; the TUI gets a /graph [on|off] slash command wired to the same toggle. Claude-Session: https://claude.ai/code/session_01Tb5bxZgFovoKct29q9VEgs
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
* Revert "feat(graph): live watcher, /graph toggle, and AgentSession wiring (PR3) (#443)" This reverts commit ec8c1ef. * Revert "feat(graph): extend symbol graph to Python, Go, TypeScript, JavaScript (PR2) (#442)" This reverts commit 0e813ab. * Revert "feat(graph): add repo-wide symbol graph, find_definition/find_references (PR1: Rust) (#441)" This reverts commit e18cf38.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
…3) (#443) Completes the knowledge-graph phased plan: forge-graph now hash-aware rebuilds and keeps itself live via a debounced notify watcher; AgentSession holds the GraphHandle and exposes set_graph_enabled to pause/resume the watcher and hide find_definition/find_references from the model; the TUI gets a /graph [on|off] slash command wired to the same toggle. Claude-Session: https://claude.ai/code/session_01Tb5bxZgFovoKct29q9VEgs
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
* Revert "feat(graph): live watcher, /graph toggle, and AgentSession wiring (PR3) (#443)" This reverts commit c8048f9. * Revert "feat(graph): extend symbol graph to Python, Go, TypeScript, JavaScript (PR2) (#442)" This reverts commit b48bbbe. * Revert "feat(graph): add repo-wide symbol graph, find_definition/find_references (PR1: Rust) (#441)" This reverts commit f2acb05.
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
forge-graph's initial build is now hash-aware (skips unchanged files on re-open) and a debouncednotifywatcher keeps the graph live for the rest of the process (crates/forge-graph/src/watcher.rs).GraphHandlegainspause_watcher/resume_watcher/is_watching; resuming runs a cheap catch-up sweep for edits missed while paused.AgentSessionholds the workspace'sGraphHandleand exposesset_graph_enabled/graph_enabled/has_graph;tools_for_model()gets a third filter stage hidingfind_definition/find_referenceswhen disabled, mirroring the existing MCP-deferral layering./graph [on|off]TUI slash command wired to the toggle, plus a palette entry.notifyreports paths through/private/var/...while a workspace root often resolves through the same symlink un-canonicalized, sostrip_prefixsilently produced the wrong relative key and stale rows never cleared.Closes out the knowledge-graph plan phased delivery (PR1 #441, PR2 #442, this is PR3).
docs/is gitignored so the plan's doc-update item isn't committable — skipped, as previously confirmed.Test plan
cargo test -p forge-graph— 44 tests incl. 2 new watcher e2e tests (live edit pickup, pause/resume catch-up)cargo test -p forge-core— newtools_for_modelgraph-filter testcargo test -p forge-session— new graph-attach/toggle testscargo test -p forge-tui— new/graphparse testscargo test --workspace— full suite greencargo fmt --all/cargo clippy --workspace --all-targetscleanhttps://claude.ai/code/session_01Tb5bxZgFovoKct29q9VEgs