DCP was failing to find session messages because it was looking in ~/.config/opencode/sessions instead of ~/.local/share/opencode/storage. Unified all hooks to use getOpenCodeStorageDir() for cross-platform consistency. 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
16 lines
508 B
TypeScript
16 lines
508 B
TypeScript
import { join } from "node:path";
|
|
import { getOpenCodeStorageDir } from "../../shared/data-path";
|
|
|
|
export const OPENCODE_STORAGE = getOpenCodeStorageDir();
|
|
export const INTERACTIVE_BASH_SESSION_STORAGE = join(
|
|
OPENCODE_STORAGE,
|
|
"interactive-bash-session",
|
|
);
|
|
|
|
export const OMO_SESSION_PREFIX = "omo-";
|
|
|
|
export function buildSessionReminderMessage(sessions: string[]): string {
|
|
if (sessions.length === 0) return "";
|
|
return `\n\n[System Reminder] Active omo-* tmux sessions: ${sessions.join(", ")}`;
|
|
}
|