Five worktrees for five agents sounds like organization. In practice, it’s five contexts to keep straight, five places history could live, five spots for a WIP that gets left behind or diffed against the wrong branch.
GitLens 19.2’s fix isn’t a second graph. It’s making the one graph you already trust point wherever the work actually is.
Scope to Worktree re-points the entire Commit Graph at a worktree: its working changes become the primary WIP row, its status drives the ahead/behind counts and markers, and every action (commit, pull, push, switch) runs with it as the working directory. History is never re-walked, so scoping and unscoping are immediate, and your scroll position, selection, search, and filters all survive the switch. Scope it from a worktree row in the side bar, a double-click on a WIP row, or the Focus in Commit Graph commands, and a tinted title bar with a named pill tells you at a glance which worktree you’re looking at.
Scope and Focus now do two different jobs, and the distinction is worth knowing. Focus narrows the rows to a single branch’s history. Scope re-centers the graph on a worktree’s perspective. A scoped graph still shows every commit unless you focus it as well, and two settings, gitlens.graph.scopeBehavior and gitlens.graph.doubleClickWorktreeAction, decide whether the two travel together by default.
Agent Sessions You Can Pick Back Up
19.1 gave Codex, GitHub Copilot CLI, and OpenCode the same visibility Claude Code already had in the graph. 19.2 lets you resume them, too, not just watch them. Every Resume action names exactly where it’s headed, in a terminal or in the agent’s own extension, and shows both when a session can open either way. Pick a default under gitlens.agents.resumeTarget, or let GitLens ask the first time and remember your answer.
A Few More Things Worth Knowing
The graph can now save your column layout, sizing, grouping, and panels as the default for new workspaces, run your default VS Code task on any worktree in one click, and rebind or disable its own keyboard shortcuts. The Home view has been retired now that the Commit Graph covers everything it did, and GitLens itself now follows your VS Code display language, with experimental Spanish and Chinese (Simplified and Traditional) translations shipping today.
Get It
Update to GitLens 19.2. If you’re already running agents across worktrees, Scope to Worktree is the setting to try first, it’s the fastest way to see what changed. Read the full release notes for every fix and setting.
GitKraken MCP
GitKraken Insights
