refactor: remove /review command and clean up unused imports

This commit is contained in:
Eyejoker
2026-03-29 21:17:14 +09:00
parent 787c05a561
commit 4f87c840ba
3 changed files with 0 additions and 115 deletions

View File

@@ -33,7 +33,6 @@ export function extractSessionCommand(
const text = normalizeSessionCommandText(content, triggerPattern);
if (text === '/compact') return '/compact';
if (text === '/clear') return '/clear';
if (text === '/review' || text === '/review-ready') return '/review';
if (text === '/stop') return '/stop';
return null;
}
@@ -79,7 +78,6 @@ export interface SessionCommandDeps {
isAdminSender: (msg: NewMessage) => boolean;
/** Whether the denied sender would normally be allowed to interact (for denial messages). */
canSenderInteract: (msg: NewMessage) => boolean;
markReviewReady: () => Promise<string | null>;
/** Reset/complete the active paired task so ping-pong stops. */
resetPairedTask?: () => void;
/** Kill the currently running agent process for this group. Returns true if a process was killed. */
@@ -169,16 +167,6 @@ export async function handleSessionCommand(opts: {
return { handled: true, success: true };
}
if (command === '/review') {
const result = await deps.markReviewReady();
deps.advanceCursor(cmdMsg.timestamp);
await deps.sendMessage(
result ??
'Review is unavailable for this room. Paired workspaces require a configured project workDir.',
);
return { handled: true, success: true };
}
if (command === '/stop') {
const killed = deps.killProcess();
deps.advanceCursor(cmdMsg.timestamp);