Skip to content

session.idle event is not triggered #1057

@aktony404

Description

@aktony404

[STARTUP] GITHUB_MODEL = 'gpt-4o-mini'
[STARTUP] GITHUB_TOKEN set = False
[STARTUP] GITHUB_MODEL = 'gpt-4o-mini'
[STARTUP] GITHUB_TOKEN set = False
[STARTUP] GITHUB_MODEL = 'gpt-4o-mini'
[STARTUP] GITHUB_TOKEN set = False
[STARTUP] GITHUB_MODEL = 'gpt-4o-mini'
[STARTUP] GITHUB_TOKEN set = False
[DEBUG] ✅ client.start() OK
[DEBUG] ⚠️ could not list models: JSON-RPC Error -32603: Request models.list failed with message: Not authenticated. Please authenticate first.
[DEBUG] 📋 session_config = {'on_permission_request': <function PermissionHandler.approve_all at 0x0000018F020DF6A0>, 'model': 'gpt-4o-mini', 'streaming': True, 'system_message': {'mode': 'append', 'content': '# TextFormat_validator\n\n## Role\nYou are the TextFormat_validator — an AI agent that validates text formats for quality, consistency, and adherence to specified templates when requested.\n\n## Execution Modes\n1) Input text format should not contain TCS or UPS.\n2) As full text make it 2 paragraphs with 3-4 sentences each.'}}
[DEBUG] ✅ session created, id='b16eb22c-c81c-4f71-9842-c66005fda68c'
[DEBUG] 📤 calling send_and_wait | prompt='Want to differentiate yourself as an AI Engineer? \n𝗦𝘁𝗮𝗻𝗱 𝗼𝘂𝘁 𝘄𝗶𝘁𝗵 𝘁𝗵𝗲𝘀𝗲 𝟵 𝗵𝗶𝗴𝗵-𝗶𝗺𝗽𝗮𝗰𝘁 𝗽𝗿𝗼𝗷𝗲𝗰𝘁𝘀 𝘂𝘀𝗶𝗻𝗴 𝗔𝗴𝗲𝗻𝘁𝘀, 𝗟𝗟𝗠𝘀, 𝗮𝗻𝗱 𝗥𝗔𝗚.\n\n》 1. AI Cyber-Defense Multi-Agent Reasoning and Planning End-to-End\nArchitect with LangGraph, add reasoning & memory, build cyber-defense agents that detect threats from logs with a 12-step blueprint.\n\n↳ Watch here: https://lnkd.in/e4GSbSdc\n\n》 2. Video Analyzer Multi-Agent RAG Agent with CrewAI\nBuild a voice-enabled multi-agent system that answers travel questions from YouTube video transcripts.\n\n↳ Watch here: https://lnkd.in/eGxQirPf'
[DEBUG] model='gpt-4o-mini' | streaming=True | timeout=300s
[DEBUG] 📨 EVENT: pending_messages.modified
[DEBUG] 📨 EVENT: pending_messages.modified
[DEBUG] ❌ exception type : TimeoutError
[DEBUG] ❌ exception value: TimeoutError('Timeout after 300s waiting for session.idle')
[DEBUG] ❌ traceback:
Traceback (most recent call last):
File "C:\Users\lst0lkc\AppData\Local\Programs\Python\Python311\Lib\asyncio\tasks.py", line 500, in wait_for
return fut.result()
^^^^^^^^^^^^
File "C:\Users\lst0lkc\AppData\Local\Programs\Python\Python311\Lib\asyncio\locks.py", line 213, in wait
await fut
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\lst0lkc\AppData\Local\Programs\Python\Python311\Lib\site-packages\copilot\session.py", line 190, in send_and_wait
await asyncio.wait_for(idle_event.wait(), timeout=effective_timeout)
File "C:\Users\lst0lkc\AppData\Local\Programs\Python\Python311\Lib\asyncio\tasks.py", line 502, in wait_for
raise exceptions.TimeoutError() from exc
TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\lst0lkc\Downloads\RequirementAnalyzer_copilot 1\ui\agent_chat.py", line 142, in _run
response = await session.send_and_wait({"prompt": prompt}, timeout=300)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lst0lkc\AppData\Local\Programs\Python\Python311\Lib\site-packages\copilot\session.py", line 195, in send_and_wait
raise TimeoutError(f"Timeout after {effective_timeout}s waiting for session.idle")
TimeoutError: Timeout after 300s waiting for session.idle

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions