euron-code 1.8.6__tar.gz → 1.8.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {euron_code-1.8.6 → euron_code-1.8.7}/CHANGELOG.md +9 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/PKG-INFO +1 -1
- {euron_code-1.8.6 → euron_code-1.8.7}/pyproject.toml +1 -1
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/__init__.py +1 -1
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/agent.py +20 -4
- euron_code-1.8.7/tests/test_v187_sleep_wake.py +57 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/.gitignore +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/LICENSE +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/README.md +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/__main__.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/activity.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/api.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/attachments.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/auth.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/autoupdate.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/builtin_skills/build-from-reference/SKILL.md +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/builtin_skills/explain-codebase/SKILL.md +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/builtin_skills/review/SKILL.md +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/builtin_skills/test-writer/SKILL.md +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/cache.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/checkpoints.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/cli.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/codeindex.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/config.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/context.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/contextforge/LICENSE +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/contextforge/__init__.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/contextforge/text.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/contextforge/toolout.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/credentials.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/ctxstats.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/doctor.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/documents.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/dotnet.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/error_hints.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/errorlog.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/failures.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/friendly.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/frontmatter.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/hooks.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/keys.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/knowledge.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/licensing.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/llm/__init__.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/llm/anthropic.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/llm/base.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/llm/openai_compat.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/llm/setup.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/logo.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/markdown_view.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/memory.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/migration.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/modes.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/mvc5.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/osscache.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/ossgithub.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/pasteinput.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/pathfix.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/permissions.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/progress.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/project_setup.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/prompts.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/repl.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/repomap.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/rules.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/security_scan.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/sessions.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/skills.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/taskstate.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/textsafe.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tls.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/__init__.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/background.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/base.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/db.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/document.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/erie.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/fs.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/ignore.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/normalize.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/oss.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/pathfind.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/port.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/reuse.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/search.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/shell.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/skill.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/symbols.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/task.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/todo.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/web.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/tools/websearch.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/transcript.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/trust.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/ui.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/update_check.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/usage_view.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/version_info.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/webforms.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/conftest.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/fake_providers.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/helpers.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/measure_floor.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/mock_gateway.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/serve_helper.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/sim_long_session.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_agent_mock.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_api_shell.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_bench.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_bench_harness.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_cli_e2e.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_context_memory_sessions.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_dashboard_fixes.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_dashboard_fixes_102.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_db.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_erie.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_knowledge_security.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_markdown_view.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_oss_local.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_permissions.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_powershell_exit_codes.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_qa_attach_secrets.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_qa_long_task.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_qa_print_output.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_qa_reuse_unrelated.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_qa_yolo_outside.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_render_ghost.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_repl.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_reuse_honesty.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_search.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_textsafe.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_tools_fs.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_transcript_ui.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_update_check.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v111_user_reports.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v113_fix_path.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v11_byo.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v11_speed.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v11_tool_fixes.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v130_cut_writes.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v130_reliability.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v140_parity.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v152_migration.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v153_user_errors.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v155_user_errors.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v156_autoupdate.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v156_paste_and_edits.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v157_zero_errors.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v15_hosted_models.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v15_reuse_off_subagent_hooks.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v160_stop_scope_atomic.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v161_residual_errors.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v170_v2.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v180_rescue_research_permissions.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v181_silent_failures_verified.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v182_zero_errors.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v184_selfupdate_pep668.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v186_bypass_and_waits.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v2_rules_skills_hooks.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v2_tokens_shortcuts.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v2_usage_headers.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v31_security.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v3_accounts_value_setup.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v3_activity.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v3_attachments.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v3_context.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v3_live_repl.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v3_single_login.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v4.py +0 -0
- {euron_code-1.8.6 → euron_code-1.8.7}/tests/test_v5.py +0 -0
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.8.7 (2026-11-19)
|
|
4
|
+
|
|
5
|
+
- **A laptop that slept with a request open no longer ends the turn.** After waking, the first network error used
|
|
6
|
+
to stop the turn with "The Euron model has not answered for 27m 11s (1 tries)", because the sleep counted as
|
|
7
|
+
waiting. A request that was open for 5 minutes or more now restarts the retry clock, the line says "This computer
|
|
8
|
+
was asleep or offline for a while; reconnecting." and Euron Code reconnects and continues the turn.
|
|
9
|
+
- **"Busy" waits name the right cause.** When your account already has a request running (another Euron Code window,
|
|
10
|
+
or a sub-agent), the wait line says so instead of "your previous request is still finishing".
|
|
11
|
+
|
|
3
12
|
## 1.8.6 (2026-11-17)
|
|
4
13
|
|
|
5
14
|
- **`--dangerously-skip-permissions` stays on for the whole session, sub-agents included.** Shift+Tab, `/plan` off
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: euron-code
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.7
|
|
4
4
|
Summary: Euron Code: an agentic coding assistant in your terminal for Euron Plus and Super 30 students.
|
|
5
5
|
Project-URL: Homepage, https://euron.one/code-agent
|
|
6
6
|
Author-email: Euron <contact@euron.one>
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "euron-code"
|
|
7
|
-
version = "1.8.
|
|
7
|
+
version = "1.8.7"
|
|
8
8
|
description = "Euron Code: an agentic coding assistant in your terminal for Euron Plus and Super 30 students."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -45,6 +45,11 @@ QUEUE_CODES = {"user_queue_full", "queue_timeout", "queue_full", "no_capacity"}
|
|
|
45
45
|
#: (ticket: ~14 minutes of "waiting for the model"; each queued try also waits up to 90 s at the gateway, so the
|
|
46
46
|
#: queue back-off alone could run ~45 minutes, not the "about 10" it promised)
|
|
47
47
|
RETRY_WALL_S = 600.0
|
|
48
|
+
#: 1.8.7: one request that stayed open this long ended because the computer slept (or the network was off), not
|
|
49
|
+
#: because the model did not answer: the gateway cuts a silent upstream at 120 s and a queue wait at 90 s. Prod
|
|
50
|
+
#: 2026-11-18: "The Euron model has not answered for 27m 11s (1 tries)" right after a laptop woke up (the same
|
|
51
|
+
#: second the DNS lookup failed), and the turn stopped. Such a call restarts the wall clock and reconnects.
|
|
52
|
+
SUSPENDED_CALL_S = 300.0
|
|
48
53
|
#: a visible line while one request has waited this long for its first token (seconds)
|
|
49
54
|
STILL_WAITING_AT = (120.0, 300.0)
|
|
50
55
|
SUBAGENT_RESUMES = 2 # a sub-agent stopped by a busy server or a dropped connection continues this many times
|
|
@@ -1426,9 +1431,18 @@ class Agent:
|
|
|
1426
1431
|
who = self.model_label
|
|
1427
1432
|
from euron_code import llm as _llm
|
|
1428
1433
|
t0 = time.monotonic()
|
|
1434
|
+
call_t0 = t0
|
|
1429
1435
|
tries = 0
|
|
1430
1436
|
|
|
1431
|
-
def over_wall() -> bool:
|
|
1437
|
+
def over_wall(offline: bool = False) -> bool:
|
|
1438
|
+
nonlocal t0, slept
|
|
1439
|
+
if not slept and time.monotonic() - call_t0 >= SUSPENDED_CALL_S:
|
|
1440
|
+
# this one call was open for minutes (a long stream, or the computer slept or went offline):
|
|
1441
|
+
# the time went to that call, not to retries; start counting again
|
|
1442
|
+
slept = True
|
|
1443
|
+
t0 = time.monotonic()
|
|
1444
|
+
if offline:
|
|
1445
|
+
self.ui.dim("This computer was asleep or offline for a while; reconnecting.")
|
|
1432
1446
|
return time.monotonic() - t0 >= RETRY_WALL_S
|
|
1433
1447
|
|
|
1434
1448
|
def gave_up(e: EuronError) -> EuronError:
|
|
@@ -1436,9 +1450,11 @@ class Agent:
|
|
|
1436
1450
|
f"The {who} has not answered for {fmt_elapsed(time.monotonic() - t0)} ({tries} tries). Your message "
|
|
1437
1451
|
"is kept: send /retry to try again" + (", or switch model with /model." if self.uses_euron else "."),
|
|
1438
1452
|
status=e.status, code=e.code)
|
|
1453
|
+
slept = False
|
|
1439
1454
|
while True:
|
|
1440
1455
|
tries += 1
|
|
1441
1456
|
self._retry_info = (tries, t0)
|
|
1457
|
+
call_t0 = time.monotonic()
|
|
1442
1458
|
try:
|
|
1443
1459
|
return call()
|
|
1444
1460
|
except _llm.ProviderError:
|
|
@@ -1491,7 +1507,7 @@ class Agent:
|
|
|
1491
1507
|
if e.retry_after is not None:
|
|
1492
1508
|
wait = max(wait, min(float(e.retry_after), 60.0))
|
|
1493
1509
|
queued += 1
|
|
1494
|
-
why = {"user_queue_full": "
|
|
1510
|
+
why = {"user_queue_full": "another request of yours is still running, in another window or a sub-agent",
|
|
1495
1511
|
"queue_timeout": "the queue is long", "queue_full": "the queue is full",
|
|
1496
1512
|
"no_capacity": "all servers are in use"}[str(e.code)]
|
|
1497
1513
|
self._wait(wait, f"The {who} is busy ({why}); waiting for a turn." if self.uses_euron
|
|
@@ -1513,7 +1529,7 @@ class Agent:
|
|
|
1513
1529
|
wait = max(wait, min(float(e.retry_after), 60.0))
|
|
1514
1530
|
busy += 1
|
|
1515
1531
|
why = {"no_capacity": "all servers are in use", "queue_timeout": "the queue is long",
|
|
1516
|
-
"user_queue_full": "
|
|
1532
|
+
"user_queue_full": "another request of yours is still running, in another window or a sub-agent",
|
|
1517
1533
|
"queue_full": "the queue is full"}.get(str(e.code or ""), "the servers are busy")
|
|
1518
1534
|
label = f"The {who} is busy ({why})" if self.uses_euron else f"{who} is busy or unreachable"
|
|
1519
1535
|
self._wait(wait, f"{label}; waiting and trying again (try {busy} of {len(BUSY_BACKOFF)}).")
|
|
@@ -1535,7 +1551,7 @@ class Agent:
|
|
|
1535
1551
|
except NetworkError as e:
|
|
1536
1552
|
if net >= len(NETWORK_BACKOFF):
|
|
1537
1553
|
raise
|
|
1538
|
-
if over_wall():
|
|
1554
|
+
if over_wall(offline=True):
|
|
1539
1555
|
raise gave_up(e) from None
|
|
1540
1556
|
wait = NETWORK_BACKOFF[net]
|
|
1541
1557
|
net += 1
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"""1.8.7: a request that was open while the computer slept does not end the turn with "not answered for 27m".
|
|
2
|
+
|
|
3
|
+
Prod 2026-11-18 (2 people, 3 turns): "The Euron model has not answered for 27m 11s (1 tries)" in the same second as
|
|
4
|
+
"could not look up the server's address": the laptop slept with a request open; on waking the DNS lookup failed,
|
|
5
|
+
and because the wall clock (which counts sleep on Windows) was already past RETRY_WALL_S, the first network error
|
|
6
|
+
gave up. The call that was open that long now restarts the wall clock and the agent reconnects.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
import time
|
|
10
|
+
|
|
11
|
+
from euron_code import agent as agent_mod
|
|
12
|
+
from euron_code import api
|
|
13
|
+
from test_v11_speed import Scripted, _agent
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def test_network_error_after_a_long_suspended_call_reconnects(project, monkeypatch):
|
|
17
|
+
monkeypatch.setattr(agent_mod, "RETRY_WALL_S", 0.4)
|
|
18
|
+
monkeypatch.setattr(agent_mod, "SUSPENDED_CALL_S", 0.3)
|
|
19
|
+
monkeypatch.setattr(agent_mod, "NETWORK_BACKOFF", [0.01] * 6)
|
|
20
|
+
llm = Scripted(["back again"])
|
|
21
|
+
real = llm.stream_chat
|
|
22
|
+
calls = {"n": 0}
|
|
23
|
+
|
|
24
|
+
def slept_then_ok(payload, cancel=None, on_wait=None):
|
|
25
|
+
calls["n"] += 1
|
|
26
|
+
if calls["n"] == 1:
|
|
27
|
+
time.sleep(0.5) # the request was open while the computer slept, longer than the whole wall
|
|
28
|
+
raise api.NetworkError("Connection to Euron Code lost: this computer could not look up the server's address")
|
|
29
|
+
yield from real(payload, cancel, on_wait)
|
|
30
|
+
|
|
31
|
+
llm.stream_chat = slept_then_ok
|
|
32
|
+
a = _agent(project, llm)
|
|
33
|
+
res = a.run_turn("hi")
|
|
34
|
+
assert res.error is None, res.error and res.error.message
|
|
35
|
+
assert calls["n"] == 2
|
|
36
|
+
assert "asleep or offline" in a.ui.text
|
|
37
|
+
assert "has not answered" not in a.ui.text
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def test_genuine_long_waits_still_stop_at_the_wall(project, monkeypatch):
|
|
41
|
+
monkeypatch.setattr(agent_mod, "RETRY_WALL_S", 0.4)
|
|
42
|
+
monkeypatch.setattr(agent_mod, "SUSPENDED_CALL_S", 0.3)
|
|
43
|
+
monkeypatch.setattr(agent_mod, "NETWORK_BACKOFF", [0.15] * 6)
|
|
44
|
+
llm = Scripted([])
|
|
45
|
+
|
|
46
|
+
def always_down(payload, cancel=None, on_wait=None):
|
|
47
|
+
time.sleep(0.05)
|
|
48
|
+
raise api.NetworkError("Connection to Euron Code lost: no internet connection")
|
|
49
|
+
yield # pragma: no cover
|
|
50
|
+
|
|
51
|
+
llm.stream_chat = always_down
|
|
52
|
+
a = _agent(project, llm)
|
|
53
|
+
t0 = time.monotonic()
|
|
54
|
+
res = a.run_turn("hi")
|
|
55
|
+
assert res.error is not None and "/retry" in res.error.message
|
|
56
|
+
assert time.monotonic() - t0 < 5
|
|
57
|
+
assert "asleep or offline" not in a.ui.text
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/builtin_skills/build-from-reference/SKILL.md
RENAMED
|
File without changes
|
{euron_code-1.8.6 → euron_code-1.8.7}/src/euron_code/builtin_skills/explain-codebase/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|