mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 18:10:39 +09:00
Log workspace warnings to stdout
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
ff16ff8d01
commit
88da68d8a2
2 changed files with 19 additions and 1 deletions
|
|
@ -497,6 +497,13 @@ export function shouldResetTaskSessionForWake(
|
|||
return false;
|
||||
}
|
||||
|
||||
export function formatRuntimeWorkspaceWarningLog(warning: string) {
|
||||
return {
|
||||
stream: "stdout" as const,
|
||||
chunk: `[paperclip] ${warning}\n`,
|
||||
};
|
||||
}
|
||||
|
||||
function describeSessionResetReason(
|
||||
contextSnapshot: Record<string, unknown> | null | undefined,
|
||||
) {
|
||||
|
|
@ -2055,7 +2062,8 @@ export function heartbeatService(db: Db) {
|
|||
});
|
||||
};
|
||||
for (const warning of runtimeWorkspaceWarnings) {
|
||||
await onLog("stderr", `[paperclip] ${warning}\n`);
|
||||
const logEntry = formatRuntimeWorkspaceWarningLog(warning);
|
||||
await onLog(logEntry.stream, logEntry.chunk);
|
||||
}
|
||||
const adapterEnv = Object.fromEntries(
|
||||
Object.entries(parseObject(resolvedConfig.env)).filter(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue