Skip to content

Implement streaming token response for CLI backend #13

Description

@jeanmachuca

What

The CLI backend shells out to llama-cli but does not support streaming token callbacks or graceful shutdown of the child process.

Why

Without streaming, clients (like cognitiveosd) cannot receive partial completions. This makes the inference server behave like a batch processor rather than a real-time AI engine as specified in the product specs.

How

  • Implement streaming via the existing token callback interface in go processes
  • Pipe llama-cli stdout and emit SSE chunks per token
  • Handle SIGTERM to kill the child process gracefully

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    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