Tool to send cross-session opencode messages, including as request-response pattern
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix dir filter: use Gunshi args instead of options

rektide 4f4c6d40 0bfbed9d

+4 -4
+2 -2
src/commands/list.ts
··· 5 5 export const list = define({ 6 6 name: "list", 7 7 description: "List all OpenCode sessions", 8 - options: { 8 + args: { 9 9 dir: { 10 10 type: "string", 11 11 alias: "d", 12 12 description: "Filter sessions by directory pattern", 13 13 }, 14 14 }, 15 - async run({ dir }) { 15 + async run({ values: { dir } }) { 16 16 const sessions = await listSessions(dir); 17 17 displaySessions(sessions); 18 18 },
+2 -2
src/session/store.ts
··· 40 40 const session: Session = JSON.parse(content); 41 41 42 42 if (targetDir) { 43 - const startsWith = session.directory.startsWith(targetDir); 44 - if (!startsWith) continue; 43 + const isUnder = session.directory === targetDir || session.directory.startsWith(targetDir + "/"); 44 + if (!isUnder) continue; 45 45 } 46 46 47 47 sessions.push(session);