Merge pull request #2 from phj1081/codex/fix-format-after-pr1

style: fix prettier drift after merge
This commit is contained in:
Eyejoker
2026-03-30 03:49:33 +09:00
committed by GitHub
5 changed files with 7 additions and 25 deletions

View File

@@ -81,15 +81,7 @@ export async function runAgentForGroup(
onOutput?: (output: AgentOutput) => Promise<void>;
},
): Promise<'success' | 'error'> {
const {
group,
prompt,
chatJid,
runId,
startSeq,
endSeq,
onOutput,
} = args;
const { group, prompt, chatJid, runId, startSeq, endSeq, onOutput } = args;
const isMain = group.isMain === true;
const sessions = deps.getSessions();
@@ -388,10 +380,7 @@ export async function runAgentForGroup(
if (!evaluation.shouldForwardOutput) {
return;
}
if (
typeof outputText === 'string' &&
outputText.length > 0
) {
if (typeof outputText === 'string' && outputText.length > 0) {
streamedState = {
...evaluation.state,
sawVisibleOutput: true,

View File

@@ -1580,10 +1580,7 @@ describe('createMessageRuntime', () => {
});
expect(result).toBe(true);
expect(channel.sendMessage).toHaveBeenCalledWith(
chatJid,
'visible reply',
);
expect(channel.sendMessage).toHaveBeenCalledWith(chatJid, 'visible reply');
expect(channel.setTyping).toHaveBeenCalledWith(chatJid, true);
expect(channel.setTyping).toHaveBeenCalledWith(chatJid, false);
});

View File

@@ -456,5 +456,4 @@ describe('paired execution context', () => {
}),
);
});
});

View File

@@ -3,10 +3,7 @@ import crypto from 'crypto';
import fs from 'fs';
import path from 'path';
import {
DATA_DIR,
PAIRED_MAX_ROUND_TRIPS,
} from './config.js';
import { DATA_DIR, PAIRED_MAX_ROUND_TRIPS } from './config.js';
import {
createPairedTask,
getLatestPairedTaskForChat,

View File

@@ -124,9 +124,9 @@ describe('paired workspace manager', () => {
expect(
db.getPairedWorkspace('paired-task-1', 'reviewer')?.snapshot_refreshed_at,
).toBeTruthy();
expect(db.getPairedWorkspace('paired-task-1', 'reviewer')?.snapshot_ref).toBe(
null,
);
expect(
db.getPairedWorkspace('paired-task-1', 'reviewer')?.snapshot_ref,
).toBe(null);
});
it('uses the shared DB owner workspace across service-local data dirs', async () => {