Skip to content

Colleague chat: show typing indicator while the LLM is still generating #495

Description

@kcarnold

Background

In the experiment app, components/ChatPanel.tsx currently derives the colleague's "typing" indicator purely from the response message length (via lib/messageTiming.ts) — i.e. it only animates typing after the full response has arrived from the API.

Ask

Show the typing indicator while the LLM is still streaming/generating its response, so the indicator reflects real latency (the colleague now runs gpt-5.5 with low reasoning, configurable per scenario in lib/scenarios.json). This matters more now that we track a 20s latency budget (API_TIMEOUT_MS).

Notes

  • Surfaced during the colleague-eval merge (PR for branch merge-colleague-evals).
  • Related: app/api/chat/route.ts streams the response (streamText / toUIMessageStreamResponse).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions