agent-orchestrator/packages/plugins/agent-claude-code/src
Prateek bd830f72a2 feat: replace looksLikePromptExcerpt heuristic with summaryIsFallback metadata
Instead of fragile string matching to detect truncated spawn prompts,
the agent plugin now sets summaryIsFallback: true when the summary is
a first-message fallback rather than a real agent-generated summary.

- Add summaryIsFallback to AgentSessionInfo (core/types.ts)
- extractSummary() returns { summary, isFallback } in claude-code plugin
- Add summaryIsFallback to DashboardSession, propagate in serialize.ts
- Replace looksLikePromptExcerpt() with !session.summaryIsFallback
- Fix .js extension in format.ts import (review feedback)
- Add thorough tests for all layers of propagation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-19 14:24:36 +05:30
..
__tests__ fix: activity detection — fix path encoding bug, add ready state (#71) 2026-02-18 03:48:19 +05:30
index.test.ts feat: replace looksLikePromptExcerpt heuristic with summaryIsFallback metadata 2026-02-19 14:24:36 +05:30
index.ts feat: replace looksLikePromptExcerpt heuristic with summaryIsFallback metadata 2026-02-19 14:24:36 +05:30