agentscope-ai / agentscope-ai/QwenPaw

Mission parser splits quoted --verify commands

Aperta
#6,355 1 commento 0 reazioni 1 assegnatario Rivendicata da @rayrayraykk Vedi su GitHub
Lingua principale
TypeScript
Stelle
35k
Fork
3.1k
Merge medio
1g 13h
PR unite (30g)
228

Descrizione

## Problem

`parse_mission_args()` tokenizes Mission arguments with `raw_args.split()`. A quoted verification command containing spaces is split into separate tokens, so the verifier receives an invalid command and part of the command leaks into the task text.

## Reproduction

```text
parse_mission_args('Implement the feature --verify "pytest -q" --max-iterations 7')
# current result:
# {'task_text': 'Implement the feature -q"', 'verify_commands': '"pytest', 'max_iterations': 7}
```

Expected result:

```text
{'task_text': 'Implement the feature', 'verify_commands': 'pytest -q', 'max_iterations': 7}
```

## Proposed direction

Use quote-aware standard-library tokenization for valid Mission arguments, retain the existing whitespace-splitting behavior when quotes are malformed, and show the quoted multi-word form in the Mission help text. Add focused regression coverage for both paths.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by locating parse_mission_args() and the Mission help text, then inspect the existing argument parsing and its tests. Verify the quoted multi-word --verify form, the malformed-quote fallback, and the help example; done means both parsing paths have focused regression coverage and the reproduction returns the expected values.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Specificata chiaramente
Idoneità per principianti
72/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.