localBackend builds the in-process runtime and session. The session store is owned by the backend (not by individual runtimes) because the TUI's session spawner reuses the same store across spawned sessions. Closing it inside a per-session cleanup would break later session lookups (issue #2872). Th
| 66 | // lazily opened on the first CreateSession call and closed once when |
| 67 | // Close is invoked. |
| 68 | type localBackend struct { |
| 69 | flags *runExecFlags |
| 70 | agentSource config.Source |
| 71 | |
| 72 | storeOnce sync.Once |
| 73 | storeErr error |
| 74 | store session.Store |
| 75 | } |
| 76 | |
| 77 | func (b *localBackend) LoadTeamRequest() runtime.LoadTeamRequest { |
| 78 | return b.flags.loadTeamRequest(b.agentSource) |
nothing calls this directly
no outgoing calls
no test coverage detected