This repository has no description

perf(session): capture git state off the session lock (#3317)

The git probes at AgentStart/AgentEnd blocked a tokio worker for three sequential git spawns while holding the session mutex. The three probes now run concurrently inside capture_git_context, and persist_event runs the capture via spawn_blocking outside the lock, re-taking it only to compare and append. Field semantics stay the same: every boundary re-probes git, each field stays independently optional. Sandbox numbers (4-core Linux VM): capture wall 1.29ms -> 637us (2.0x), session-lock hold per boundary 1.29ms -> 91ns.


Author Sebastian Müller Committer GitHub Date Commit Parent 2b22a2b3
+94 -50
6 changed files
+94 -50
6 changed files