Merge pull request #2 from phj1081/codex/fix-format-after-pr1
style: fix prettier drift after merge
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
@@ -456,5 +456,4 @@ describe('paired execution context', () => {
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user