cli: `agentcube invoke` keeps sending an expired session ID and never recovers
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
Direzione di ricerca
Inizia da cmd/cli/agentcube/runtime/invoke_runtime.py, in particolare dalla logica della sessione salvata intorno alle righe 99-102 e 198-203. Trova gli existing unit test di invoke runtime e segui il comportamento stabilito dell’SDK da #460. Fatto significa che un 404 SESSION_NOT_FOUND cancella il session_id obsoleto, riprova una volta senza l’intestazione della sessione ed è coperto dagli unit test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened:
After the first agentcube invoke, the CLI saves the session ID to agent_metadata.yaml and sends it on every later invoke. Once that session expires (15 min idle by default) and GC removes it, the router returns 404 SESSION_NOT_FOUND. The CLI doesn't clear the saved ID, so every later invoke from that workspace fails the same way:
Error invoking agent: Failed to invoke agent hello-agent: Agent returned error 404:
{"error": "sessions.agentcube.volcano.sh \"<id>\" not found", "code": "SESSION_NOT_FOUND"}
The only ways out are re-running agentcube publish (which happens to clear session_id) or editing the YAML by hand.
What you expected to happen:
On SESSION_NOT_FOUND, the CLI should drop the stale ID and start a new session, or at least clear it and tell the user. The Python SDK already does this since #460, but the CLI wasn't updated.
How to reproduce it (as minimally and precisely as possible):
agentcube publishan agent, then runagentcube invoke. It works andsession_idgets written toagent_metadata.yaml.- Wait for the session to be garbage-collected (idle timeout, 15 min by default).
- Run
agentcube invokeagain. You get 404SESSION_NOT_FOUND. - Run it again. You get the same error, because
session_idis still in the file.
Relevant code: cmd/cli/agentcube/runtime/invoke_runtime.py. Lines 99-102 always send the saved ID, and lines 198-203 only update it after a successful response.
Anything else we need to know?:
I'm happy to send a PR. The idea is to catch 404 + SESSION_NOT_FOUND, clear session_id, and retry once without the header, plus unit tests. A --new-session flag on invoke could also be useful.
Environment:
- agentcube version: main @ 54e30e4
- Kubernetes version: N/A (client-side bug in the CLI)
- Others: Python 3.12. Running the CLI from source because the packaged version is missing
agentcube.models(#325).
- Lingua principale
- Go
- Stelle
- 176
- Fork
- 95
- Merge medio
- 5g 18h
- PR unite (30g)
- 9
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di volcano-sh/agentcube
-
Flaky TestGetPrivateKeyPEM in pkg/router due to direct deep equal assertion on rsa.PrivateKeyForse già presa @0xA8hinav l’ha presa 207 giorni fa. Apertakind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
volcano-sh/agentcube#348 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Unify Redis and Valkey store implementations in pkg/storeForse già presa @GuTS805 l’ha presa 1 giorno fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 44/100
volcano-sh/agentcube#532 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
volcano-sh/agentcube#531 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 43/100
volcano-sh/agentcube#530 ·
I maintainer di solito rispondono entro 1 giorno
-
workloadmanager: POST /sandbox has no per-owner rate limitingForse già presa @SoumaCloud l’ha presa 21 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 10/100
volcano-sh/agentcube#513 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di volcano-sh/agentcube
Issue simili
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rohitgollarahalli/mcpx#45 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
router-for-me/CLIProxyAPI#8851 ·
I maintainer di solito rispondono entro 7 giorni
-
Mend: dependency security vulnerability
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Windows 主机
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Lee-xeo/Claude-Cage#1550 ·
I maintainer di solito rispondono entro 1 giorno