The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop,gateway): drop an import the main merge orphaned; name the stalled read command
Teknium25266ccdf288
diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx b/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsxindex 4b066fc1ed5..45d7dc93fe6 100644--- a/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx+++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx@@ -36,8 +36,6 @@ import { actRender, Harness, type HarnessHandle, RUNTIME_SESSION_ID, sessionInfoimport { clearSingleFlightSessionResumeState } from './single-flight-resume'import { SESSION_COMPRESS_TIMEOUT_MS } from './slash'-import { uploadComposerAttachment } from '.'-// Suites in this file reuse the same stored-id constants. The module-level// single-flight resume map (and drift-recovery cache) would otherwise leak a// never-settling in-flight promise from one test into the next.diff --git a/tests/gateway/test_session_read_commands.py b/tests/gateway/test_session_read_commands.pyindex d12b2641341..32e95f9472c 100644--- a/tests/gateway/test_session_read_commands.py+++ b/tests/gateway/test_session_read_commands.py@@ -53,7 +53,11 @@ def test_local_session_reads_report_this_session_and_refuse_their_write_forms(tmfor command in ('usage', 'insights', 'profile', 'topup', 'diff', 'memory', 'kanban list','suggestions', 'bundles', 'usage reset', 'memory approval on', 'kanban create x','suggestions catalog', 'debug', 'agents', 'sessions', 'platform', 'fast'):- reply = await rpc(ws, 'slash.exec', session_id=sid, command=command)+ try:+ reply = await rpc(ws, 'slash.exec', session_id=sid, command=command)+ except TimeoutError:+ # Name the command: an unnamed 20 s rpc timeout under load carried no evidence.+ raise AssertionError(f'slash.exec {command!r} did not answer within the rpc bound') from Noneout[command] = reply.get('result', {}).get('output') or reply.get('error', {}).get('message')dispatched = await rpc(ws, 'command.dispatch', session_id=sid, name='profile', arg='')out['dispatch profile'] = dispatched['result']['output']