docs(FN-823): clarify agent log content is never truncated per-entry
- Clarify in dashboard README that agent log entries are never truncated - Add maxLength safeguards in store (getAgentLog), routes, useAgentLogs, and useMultiAgentLogs hooks - Add tests for store, AgentLogViewer component, useAgentLogs hook, useMultiAgentLogs hook, and dashboard routes - All tests verify that log text and detail fields are preserved in full without per-entry truncation
This commit is contained in:
@@ -146,6 +146,10 @@ export function createServer(store: TaskStore, options?: ServerOptions): ReturnT
|
||||
// directly. Using getOrCreateProjectStore here would attach the listener
|
||||
// to a different EventEmitter instance that the executor never writes to,
|
||||
// breaking real-time log streaming.
|
||||
//
|
||||
// Per-entry text and detail fields are serialized in full — there is no
|
||||
// SSE-level truncation. The 500-entry cap is applied client-side in the
|
||||
// React hooks (useAgentLogs / useMultiAgentLogs).
|
||||
const onAgentLog = (entry: { taskId: string; text: string; type: string; timestamp: string }) => {
|
||||
if (entry.taskId !== taskId) return;
|
||||
res.write(`event: agent:log\ndata: ${JSON.stringify(entry)}\n\n`);
|
||||
|
||||
Reference in New Issue
Block a user