Skip to content

[Bug]: compact context failΒ #60604

Description

@sakalaboator

Bug Description

Preflight compression: ~218,685 tokens >= 209,715 threshold. This may take a moment.
πŸ—œοΈ Compacting context β€” summarizing earlier conversation so I can continue...

Retrying in 4.9s (attempt 2/3)...
⚠️ API call failed (attempt 3/3): APITimeoutError
πŸ”Œ Provider: custom Model: qwen36-27b_Q4
🌐 Endpoint: http://192.168.0.203:11434/v1
πŸ“ Error: Request timed out.
⏱️ Elapsed: 10821.37s Context: 383 msgs, ~162,019 tokens
❌ API failed after 3 retries β€” Request timed out.
πŸ’€ Final error: Request timed out.

Steps to Reproduce

Preflight compression: ~218,685 tokens >= 209,715 threshold. This may take a moment.
πŸ—œοΈ Compacting context β€” summarizing earlier conversation so I can continue...

Retrying in 4.9s (attempt 2/3)...
⚠️ API call failed (attempt 3/3): APITimeoutError
πŸ”Œ Provider: custom Model: qwen36-27b_Q4
🌐 Endpoint: http://192.168.0.203:11434/v1
πŸ“ Error: Request timed out.
⏱️ Elapsed: 10821.37s Context: 383 msgs, ~162,019 tokens
❌ API failed after 3 retries β€” Request timed out.
πŸ’€ Final error: Request timed out.

Expected Behavior

former version run well, after update to 0.17.0, the problem come out, 0.18.0 also

Actual Behavior

former version run well, after update to 0.17.0, the problem come out, 0.18.0 also

Affected Component

Tools (terminal, file ops, web, code execution, etc.)

Messaging Platform (if gateway-related)

N/A (CLI only)

Debug Report

no log

Operating System

Ubuntu 24.04

Python Version

3.12.3

Hermes Version

0.18.0

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium β€” degraded but workaround existsbugcomp/agentCore agent runtime: loop, agent_init, prompt builder, context-compression, responses endpointneeds-reproBug needs reproduction stepsprovider/ollamaOllama / local modelstype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions