Skip to content

[HIGH:82] Unbounded message Vec growth in routine tool loop #826

@henrypark133

Description

@henrypark133

[HIGH:82] Issue Found by Staging CI Review

Severity: HIGH
Confidence: 82/100
PR: #820

Description

Messages accumulate without trimming across up to 5 iterations, potentially building large context (20+ messages with potentially unbounded content from tool outputs).

Location

src/agent/routine_engine.rs (routine tool loop)

Suggested Fix

Add message trimming or context window limits within the routine tool loop.


Auto-created by staging-ci Claude Code review

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrisk: highSafety, secrets, auth, or critical infrastructurestaging-ci-reviewIssue found during staging CI promotion review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions