forked from kent/consciousness
Improve hook agent diagnostics
This commit is contained in:
parent
e6f9f062f0
commit
b4a8f08b9b
8 changed files with 307 additions and 36 deletions
|
|
@ -64,7 +64,12 @@ impl HookSession {
|
|||
|
||||
/// Load from POC_SESSION_ID environment variable
|
||||
pub fn from_env() -> Option<Self> {
|
||||
Self::from_id(std::env::var("POC_SESSION_ID").ok()?)
|
||||
let session_id = std::env::var("POC_SESSION_ID").ok()?;
|
||||
let mut session = Self::from_id(session_id)?;
|
||||
if let Ok(path) = std::env::var("POC_TRANSCRIPT_PATH") {
|
||||
session.transcript_path = path;
|
||||
}
|
||||
Some(session)
|
||||
}
|
||||
|
||||
/// Get the seen set for this session
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue