Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions extensions/cli/src/commands/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,10 @@ export async function serve(prompt?: string, options: ServeOptions = {}) {

state.lastActivity = Date.now();

// Update metadata after successful agent turn
// Update metadata after successful agent turn (mark as complete for this turn)
try {
const history = services.chatHistory?.getHistory();
await updateAgentMetadata(history);
await updateAgentMetadata({ history, isComplete: true });
} catch (metadataErr) {
// Non-critical: log but don't fail the agent execution
logger.debug(
Expand Down
Loading