Skip to content

Fix double count_tokens call in prune_stale_tool_outputs #883

@bug-ops

Description

@bug-ops

Context

prune_stale_tool_outputs() calls count_tokens twice per ToolResult — once for guard, once for accumulator.

Solution

Compute once into local variable, reuse.

Epic: #860 | Effort: XS | Crate: zeph-core

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions