hermes-agent/tests
Teknium 470c3ea51a
fix: handle Anthropic long-context tier 429 by reducing to 200k
Anthropic returns HTTP 429 'Extra usage is required for long context
requests' when a Claude Max subscription doesn't include the 1M context
tier. This is NOT a transient rate limit — retrying won't help.

Detect this specific error before the generic rate-limit handler and:
1. Reduce context_length from 1M to 200k (the standard tier)
2. Trigger context compression to fit
3. Retry with the reduced context

The reduction is session-scoped (not persisted) so it auto-recovers
if the user later enables extra usage on their subscription.

Fixes: Sonnet 4.6 instant rate limits on Claude Max without extra usage
2026-04-03 01:56:43 -07:00
..
acp test(acp): add E2E tests for MCP registration and tool-result reporting 2026-04-02 20:54:27 -07:00
agent feat(memory): pluggable memory provider interface with profile isolation, review fixes, and honcho CLI restoration (#4623) 2026-04-02 15:33:51 -07:00
cron
…
e2e test(e2e): remove section separator comments 2026-04-01 15:23:52 -07:00
fakes
…
gateway fix(whatsapp): add free_response_chats, mention stripping, and interactive message unwrapping 2026-04-03 01:16:39 -07:00
hermes_cli fix: use get_hermes_home(), consolidate git_cmd, update tests 2026-04-03 01:46:42 -07:00
honcho_plugin feat(memory): pluggable memory provider interface with profile isolation, review fixes, and honcho CLI restoration (#4623) 2026-04-02 15:33:51 -07:00
integration
…
skills
…
tools fix(gateway): normalize step_callback prev_tools for backward compat 2026-04-02 20:54:27 -07:00
__init__.py
…
conftest.py
…
run_interrupt_test.py
…
test_413_compression.py
…
test_860_dedup.py
…
test_1630_context_overflow_loop.py
…
test_agent_guardrails.py
…
test_agent_loop.py
…
test_agent_loop_tool_calling.py
…
test_agent_loop_vllm.py
…
test_anthropic_adapter.py fix: preserve Anthropic thinking block signatures across tool-use turns 2026-04-02 10:30:32 -07:00
test_anthropic_error_handling.py
…
test_anthropic_oauth_flow.py
…
test_anthropic_provider_persistence.py
…
test_api_key_providers.py fix: remove hardcoded OpenRouter/opus defaults 2026-04-01 15:22:26 -07:00
test_async_httpx_del_neuter.py
…
test_atomic_json_write.py
…
test_atomic_yaml_write.py
…
test_auth_codex_provider.py
…
test_auth_commands.py
…
test_auth_nous_provider.py
…
test_auxiliary_config_bridge.py
…
test_batch_runner_checkpoint.py
…
test_cli_approval_ui.py
…
test_cli_background_tui_refresh.py
…
test_cli_context_warning.py fix: add missing provider attrs to cli_obj test fixture 2026-04-01 01:12:23 -07:00
test_cli_extension_hooks.py
…
test_cli_file_drop.py refactor: extract _detect_file_drop() + add 28 tests 2026-04-02 00:40:27 -07:00
test_cli_init.py fix(cli): surface recent sessions inside /history and /resume 2026-04-03 00:50:49 -07:00
test_cli_interrupt_subagent.py
…
test_cli_loading_indicator.py
…
test_cli_mcp_config_watch.py
…
test_cli_new_session.py
…
test_cli_plan_command.py
…
test_cli_prefix_matching.py
…
test_cli_preloaded_skills.py
…
test_cli_provider_resolution.py feat(memory): pluggable memory provider interface with profile isolation, review fixes, and honcho CLI restoration (#4623) 2026-04-02 15:33:51 -07:00
test_cli_retry.py
…
test_cli_save_config_value.py fix(cli): use atomic write in save_config_value to prevent config loss on interrupt 2026-03-31 12:21:55 -07:00
test_cli_secret_capture.py
…
test_cli_skin_integration.py
…
test_cli_status_bar.py
…
test_cli_tools_command.py
…
test_codex_execution_paths.py
…
test_codex_models.py fix: repair OpenCode model routing and selection (#4508) 2026-04-02 09:36:24 -07:00
test_compression_boundary.py
…
test_compression_persistence.py
…
test_compressor_fallback_update.py
…
test_config_env_expansion.py
…
test_context_pressure.py
…
test_context_references.py
…
test_context_token_tracking.py
…
test_credential_pool.py
…
test_credential_pool_routing.py fix: preserve credential_pool through smart routing and defer eager fallback on 429 (#4361) 2026-04-01 01:02:34 -07:00
test_crossloop_client_cache.py
…
test_dict_tool_call_args.py
…
test_display.py feat: add inline diff previews for write actions 2026-04-01 02:13:57 -07:00
test_evidence_store.py
…
test_exit_cleanup_interrupt.py feat(memory): pluggable memory provider interface with profile isolation, review fixes, and honcho CLI restoration (#4623) 2026-04-02 15:33:51 -07:00
test_external_credential_detection.py
…
test_fallback_model.py
…
test_file_permissions.py
…
test_flush_memories_codex.py
…
test_hermes_state.py fix: merge dotted+hyphenated FTS5 quoting into single pass 2026-04-02 00:49:11 -07:00
test_honcho_client_config.py feat(memory): pluggable memory provider interface with profile isolation, review fixes, and honcho CLI restoration (#4623) 2026-04-02 15:33:51 -07:00
test_insights.py
…
test_interactive_interrupt.py
…
test_interrupt_propagation.py
…
test_long_context_tier_429.py fix: handle Anthropic long-context tier 429 by reducing to 200k 2026-04-03 01:56:43 -07:00
test_managed_server_tool_support.py
…
test_mcp_serve.py
…
test_minisweagent_path.py
…
test_model_metadata_local_ctx.py
…
test_model_provider_persistence.py fix: repair OpenCode model routing and selection (#4508) 2026-04-02 09:36:24 -07:00
test_model_tools.py
…
test_model_tools_async_bridge.py
…
test_openai_client_lifecycle.py
…
test_packaging_metadata.py
…
test_percentage_clamp.py
…
test_personality_none.py
…
test_plugins.py
…
test_plugins_cmd.py
…
test_primary_runtime_restore.py feat: per-turn primary runtime restoration and transport recovery (#4624) 2026-04-02 10:52:01 -07:00
test_project_metadata.py fix: exclude matrix from [all] extras — python-olm is upstream-broken (#4615) 2026-04-02 09:21:37 -07:00
test_provider_fallback.py
…
test_provider_parity.py fix(tests): fix 11 real test failures + major cascade poisoner (#4570) 2026-04-02 08:43:06 -07:00
test_quick_commands.py
…
test_real_interrupt_subagent.py
…
test_reasoning_command.py
…
test_redirect_stdout_issue.py
…
test_resume_display.py
…
test_run_agent.py feat(memory): pluggable memory provider interface with profile isolation, review fixes, and honcho CLI restoration (#4623) 2026-04-02 15:33:51 -07:00
test_run_agent_codex_responses.py
…
test_runtime_provider_resolution.py fix: repair OpenCode model routing and selection (#4508) 2026-04-02 09:36:24 -07:00
test_session_reset_fix.py
…
test_setup_model_selection.py fix: repair OpenCode model routing and selection (#4508) 2026-04-02 09:36:24 -07:00
test_sql_injection.py
…
test_streaming.py test: add codex transport drop regression 2026-03-31 12:05:06 -07:00
test_surrogate_sanitization.py
…
test_timezone.py
…
test_token_persistence_non_cli.py fix(insights): persist token usage for non-CLI sessions 2026-04-02 10:47:13 -07:00
test_tool_call_parsers.py
…
test_toolset_distributions.py
…
test_toolsets.py
…
test_trajectory_compressor.py
…
test_trajectory_compressor_async.py
…
test_utils_truthy_values.py
…
test_worktree.py
…
test_worktree_security.py
…