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)
10 lines
290 B
TypeScript
10 lines
290 B
TypeScript
import { join } from "node:path";
|
|
import { getOpenCodeStorageDir } from "../../shared/data-path";
|
|
|
|
export const OPENCODE_STORAGE = getOpenCodeStorageDir();
|
|
export const AGENTS_INJECTOR_STORAGE = join(
|
|
OPENCODE_STORAGE,
|
|
"directory-agents",
|
|
);
|
|
export const AGENTS_FILENAME = "AGENTS.md";
|