Commit Graph
12 Commits
Author SHA1 Message Date
opencode 6cb514ec13 fix: reset terminal e stdout flush per CLI semplice
- stty sane resetta il terminale dopo EnhancedCLI fallito
- sys.stdin.readline() invece di input() per terminali problematici
- stdout flush prima di read per garantire prompt visibile
2026-03-24 17:03:48 +01:00
opencode 5d9bd48013 fix: CLI semplice è ora il default, EnhancedCLI solo con --enhanced
- Default: CLI semplice (funziona sempre)
- --enhanced per provare EnhancedCLI (sperimentale)
2026-03-24 17:03:06 +01:00
opencode 453156148c fix: EnhancedCLI timeout e fallback a CLI semplice
- Rimosso CursorShape.BEAM che causa hang su alcuni terminali
- Aggiunto timeout 30s con fallback a CLI semplice
- Cattura KeyboardInterrupt, EOFError, OSError per hang
- Signal handler per Ctrl+C in EnhancedCLI
2026-03-24 17:00:16 +01:00
opencode e75a75e16c fix: output lungo salvato in file + visualizzato con less per scrollback
- Output > 10 righe salvato in .langcode/output_TIMESTAMP.txt
- Visualizzato con 'less -R' che supporta frecce e scroll
- Fallback a cat parziale se less non disponibile
2026-03-24 15:56:58 +01:00
opencode f1d1248d4b fix: paginazione output con stile 'more'
- Output mostrato in blocchi da 15 righe
- Premi ENTER per continuare, 'q' per uscire
- SepARATOR visivo tra pagine
2026-03-24 15:37:38 +01:00
opencode 3197dedd4c fix: rimuovi codici ANSI e aggiungi info scroll per CLI semplice
- strip_ansi() rimuove escape sequences per terminali base
- Info scroll per output > 1000 caratteri
2026-03-24 14:13:50 +01:00
opencode 918b1f3a5b feat: aggiungi indicatore 'Pensando...' durante elaborazione
- Spinner animato mostra che l'agent sta elaborando
- Previene confusione su operazioni lunghe
2026-03-24 11:23:30 +01:00
opencode c8e7489c26 fix: Ctrl+C ora esce correttamente con signal handler 2026-03-24 11:13:40 +01:00
opencode 82b70f88d1 feat: aggiungi fallback CLI semplice per terminali incompatibili
- Aggiunto flag --simple per usare input() invece di prompt_toolkit
- EnhancedCLI ora ha try/except con fallback automatico
- CLI semplice supporta comandi base: /help, /status, /exit
2026-03-24 11:10:37 +01:00
opencode 4a0342dcb7 feat: aggiungi EnhancedCLI con prompt_toolkit
- Nuovo modulo enhanced_cli.py con UI moderna
- Colors: user (cyan), agent (green), system (yellow), error (red)
- History persistente in .langcode/.cli_history
- Autocomplete comandi (/help, /status, /clear, /theme, /exit)
- Supporto temi: default, dark, light
- Multiline input
- Integrato in langcode.py chat mode
2026-03-24 10:15:51 +01:00
opencode cffac60211 fix: langcode.py usa result['response'] invece di messages[-1]
Il bug era che langcode.py prendeva l'ultimo messaggio dalla cronologia invece del campo 'response' che OllamaToolAgent restituisce.
2026-03-23 18:35:45 +01:00
truetype eda22811ce Rename project: maxclaw → langcode
- Renamed all references from maxclaw to langcode across all files
- Renamed maxclaw.py → langcode.py
- Renamed completion scripts: maxclaw.bash/zsh → langcode.bash/zsh
- Updated Dockerfile, README, all Python files, HTML, JSON, YAML
- New Gitea repository: http://192.168.0.183:8085/truetype/langcode_agent.git
2026-03-21 08:36:35 +01:00