Rename Session -> HookSession

The hook's Session is not the same as poc-agent's session concept.
Rename to avoid confusion now that poc-agent will create HookSessions
to call into the agent cycle.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-02 00:42:25 -04:00
parent a0245c1279
commit 55a037f4c7
5 changed files with 19 additions and 19 deletions

View file

@ -602,7 +602,7 @@ fn resolve(
/// Reads POC_SESSION_ID to find the transcript, extracts the last
/// segment (post-compaction), returns the tail (~100K chars).
fn resolve_conversation(budget: Option<usize>) -> String {
let session = crate::session::Session::from_env();
let session = crate::session::HookSession::from_env();
let transcript = session.as_ref()
.map(|s| s.transcript())
.unwrap_or_else(crate::session::TranscriptInfo::empty);
@ -698,7 +698,7 @@ fn resolve_memory_ratio() -> String {
let state_dir = crate::store::memory_dir().join("sessions");
// Get post-compaction transcript size
let session = crate::session::Session::from_env();
let session = crate::session::HookSession::from_env();
let transcript = session.as_ref()
.map(|s| s.transcript())
.unwrap_or_else(crate::session::TranscriptInfo::empty);