From 3f73f0968891fe678a5c2d3aeeb3ca2d2ff42a17 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Wed, 12 Aug 2026 16:18:54 +0200 Subject: [PATCH] fix: update dolphin scripts for session/agent model - ollie-session-here: pass cwd= when creating agent - ollie-ask: create default session and agent before generate --- dolphin/ollie-ask | 4 ++++ dolphin/ollie-session-here | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dolphin/ollie-ask b/dolphin/ollie-ask index da02a4c..4f7e0f2 100755 --- a/dolphin/ollie-ask +++ b/dolphin/ollie-ask @@ -6,6 +6,10 @@ TARGET="$1" PREFIX="${2:-Describe and explain this file:}" PROMPT="$PREFIX $TARGET" +# Ensure default session and agent exist +printf 'name=default\ncwd=%s\n' "$HOME" | ollie-9p write session/new 2>/dev/null +printf 'cwd=%s\n' "$HOME" | ollie-9p write session/default/agent/new 2>/dev/null + # Use Generate one-shot via 9P RESULT=$(echo "$PROMPT" | ollie-9p rdwr generate 2>/dev/null) diff --git a/dolphin/ollie-session-here b/dolphin/ollie-session-here index f722bf8..5862ad6 100755 --- a/dolphin/ollie-session-here +++ b/dolphin/ollie-session-here @@ -15,7 +15,7 @@ SESSION_NAME="$(basename "$TARGET")" # Create session (idempotent) and agent via 9P printf 'name=%s\ncwd=%s\n' "$SESSION_NAME" "$TARGET" | ollie-9p write session/new -printf '' | ollie-9p write "session/$SESSION_NAME/agent/new" +printf 'cwd=%s\n' "$TARGET" | ollie-9p write "session/$SESSION_NAME/agent/new" if [ -t 1 ]; then # Terminal: print session info