Skip to content

Commit fcd92ec

Browse files
igorcostaAutohand Evolve
andcommitted
Resume folder sessions with -c and keep auto-commit long-only
Add public continue and resume selectors using the existing project-scoped session lookup and picker. Restore saved history before headless prompts, preserve session identity, and reject ephemeral restoration before authentication. Update help, the breaking-change note, and config references, including translated auto-commit flag syntax. Cover folder scoping, headless history, picker cancellation, auto-commit isolation, and ephemeral conflicts with native and built-terminal regressions. chore(release): hold CLI publication while the GitHub Actions billing release block is in effect. Co-authored-by: Autohand Evolve <code-noreply@autohand.ai>
1 parent 468d8fe commit fcd92ec

21 files changed

Lines changed: 306 additions & 30 deletions

‎CHANGELOG.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
## Unreleased
4+
5+
### Breaking
6+
7+
`-c` now means `--continue` (as in Claude Code). Use `--auto-commit` for auto-commit.

‎README.md‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ autohand -p "add a dark mode toggle to the settings page"
138138
autohand -p "fix the TypeScript errors" -y
139139

140140
# Auto-commit changes after task completion
141-
autohand -p "refactor the auth module" -c
141+
autohand -p "refactor the auth module" --auto-commit
142142
```
143143

144144
## Editor Extensions
@@ -234,7 +234,9 @@ events and writes exactly one final `result` or `error` object to stdout.
234234
| `--output-format stream-json` | | Stream command lifecycle events as JSON Lines |
235235
| `--json <stream\|local>` | | Stream JSON Lines or write only the final JSON result (`--json` defaults to stream) |
236236
| `--yes` | `-y` | Auto-confirm risky actions |
237-
| `--auto-commit` | `-c` | Auto-commit changes after completing tasks |
237+
| `--continue` | `-c` | Resume the latest session in this folder (also with `-p`) |
238+
| `--resume [id]` | `-r` | Resume a saved session or open the folder picker |
239+
| `--auto-commit` | | Auto-commit changes after completing tasks |
238240
| `--dry-run` | | Preview actions without applying mutations |
239241
| `--debug` | `-d` | Enable debug output (verbose logging) |
240242
| `--model <model>` | | Override the configured LLM model |
@@ -343,7 +345,7 @@ See [Agent Skills Documentation](docs/agent-skills.md) for creating custom skill
343345

344346
## Automatic commits
345347

346-
`--auto-commit` (or `-c`) snapshots the repository before the agent starts editing. It commits only session changes and lists pre-existing edits and untracked files as `left uncommitted (yours)`. An initially dirty file stays uncommitted even if the agent edits it again. Your existing staging is preserved. Automatic commits are disabled if a safe baseline cannot be captured.
348+
`--auto-commit` snapshots the repository before the agent starts editing. It commits only session changes and lists pre-existing edits and untracked files as `left uncommitted (yours)`. An initially dirty file stays uncommitted even if the agent edits it again. Your existing staging is preserved. Automatic commits are disabled if a safe baseline cannot be captured.
347349

348350
## Proxy settings
349351

@@ -618,7 +620,9 @@ autohand resume --path /path/to/project
618620
/resume
619621
```
620622

621-
The picker supports arrow keys, Enter, and page navigation for older sessions. Escape or Ctrl+C cancels without starting a session. `--last` uses the last activity time, falling back to creation time for older session metadata. Without a terminal, provide `--last` or an explicit reference. References cannot be combined with `--last` or `--all`; `-c` remains auto-commit.
623+
The picker supports arrow keys, Enter, and page navigation for older sessions. Escape or Ctrl+C cancels without starting a session. `--last` uses the last activity time, falling back to creation time for older session metadata. Without a terminal, provide `--last` or an explicit reference. References cannot be combined with `--last` or `--all`.
624+
625+
`autohand -c` continues the most recently active session in this folder. If none exists, it starts a new one. Use `autohand -c -p "Continue the fix"` for a headless continuation, or `autohand -r <id>` to select a session directly. `autohand -r` opens the folder picker. `--ephemeral` cannot be combined with `--continue`, `--resume`, or `--fork`.
622626

623627
## Entire Integration
624628

‎docs/config-reference.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2889,7 +2889,9 @@ These flags override config file settings:
28892889
| `--tmux` | Launch in a dedicated tmux session (implies `--worktree`; cannot be used with `--no-worktree`) |
28902890
| `--zit [intent]` | Run session in a disposable Zit workspace, recorded as a Zit change on exit (optional intent) |
28912891
| `--no-worktree` | Disable git worktree isolation in auto-mode |
2892-
| `-c, --auto-commit` | Auto-commit changes after completing tasks |
2892+
| `-c, --continue` | Resume the latest session in this folder, including with `-p`; start fresh when none exists |
2893+
| `-r, --resume [id]` | Resume by reference, or open the folder picker without an id |
2894+
| `--auto-commit` | Auto-commit changes after completing tasks |
28932895
| `--patch` | Generate git patch without applying changes |
28942896
| `--output <file>` | Output file for patch (used with --patch) |
28952897

‎docs/config-reference_cs.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1933,7 +1933,7 @@ Tyto příznaky přepisují nastavení konfiguračního souboru:
19331933
| `--worktree [name]` | Spustit relaci v izolovaném pracovním stromu git (volitelný název pracovního stromu/větve) |
19341934
| `--tmux` | Spustit ve vyhrazené relaci tmux (předpokládá `--worktree`; nelze použít s `--no-worktree`) |
19351935
| `--no-worktree` | Zakázat izolaci pracovního stromu git v automatickém režimu |
1936-
| `-c, --auto-commit` | Automatické potvrzení změn po dokončení úkolů |
1936+
| `--auto-commit` | Automatické potvrzení změn po dokončení úkolů |
19371937
| `--patch` | Vygenerujte git patch bez použití změn |
19381938
| `--output <file>` | Výstupní soubor pro patch (používá se s --patch) |
19391939

‎docs/config-reference_de.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ Diese Flags überschreiben Konfigurationsdatei-Einstellungen:
20562056
| `--worktree [name]` | Sitzung in isoliertem Git-Worktree ausführen (optionaler Worktree-/Branch-Name) |
20572057
| `--tmux` | In dedizierter tmux-Sitzung starten (impliziert `--worktree`; kann nicht mit `--no-worktree` verwendet werden) |
20582058
| `--no-worktree` | Git-Worktree-Isolierung im Auto-Modus deaktivieren |
2059-
| `-c, --auto-commit` | Änderungen nach Abschluss der Aufgaben automatisch committen |
2059+
| `--auto-commit` | Änderungen nach Abschluss der Aufgaben automatisch committen |
20602060
| `--patch` | Git-Patch generieren, ohne Änderungen anzuwenden |
20612061
| `--output <file>` | Ausgabedatei für Patch (verwendet mit --patch) |
20622062

‎docs/config-reference_fr.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,7 @@ Ces indicateurs remplacent les paramètres du fichier de configuration :
19151915
| `--worktree [name]` | Exécuter la session dans un arbre de travail git isolé (nom de l'arbre de travail/de la branche facultatif) |
19161916
| `--tmux` | Lancer dans une session tmux dédiée (implique `--worktree` ; ne peut pas être utilisé avec `--no-worktree`) |
19171917
| `--no-worktree` | Désactiver l'isolation de git worktree en mode automatique |
1918-
| `-c, --auto-commit` | Valider automatiquement les modifications après avoir terminé les tâches |
1918+
| `--auto-commit` | Valider automatiquement les modifications après avoir terminé les tâches |
19191919
| `--patch` | Générer le patch git sans appliquer les modifications |
19201920
| `--output <file>` | Fichier de sortie pour le patch (utilisé avec --patch) |
19211921

‎docs/config-reference_hu.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,7 @@ Ezek a jelzők felülírják a konfigurációs fájl beállításait:
19151915
| `--worktree [name]` | Munkamenet futtatása elszigetelt git-munkafán (opcionális munkafa/ág neve) |
19161916
| `--tmux` | Indítás egy dedikált tmux munkamenetben (az `--worktree`-t jelenti; nem használható a `--no-worktree` kóddal) |
19171917
| `--no-worktree` | A git munkafa elkülönítésének letiltása automatikus módban |
1918-
| `-c, --auto-commit` | Változások automatikus véglegesítése a feladatok elvégzése után |
1918+
| `--auto-commit` | Változások automatikus véglegesítése a feladatok elvégzése után |
19191919
| `--patch` | Git javítás generálása változtatások alkalmazása nélkül |
19201920
| `--output <file>` | A javítás kimeneti fájlja (a --patch-el együtt használatos) |
19211921

‎docs/config-reference_it.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,7 @@ Questi flag sovrascrivono le impostazioni del file di configurazione:
19151915
| `--worktree [name]` | Esegui la sessione in un albero di lavoro git isolato (nome albero di lavoro/ramo opzionale) |
19161916
| `--tmux` | Avvia in una sessione tmux dedicata (implica `--worktree`; non può essere utilizzato con `--no-worktree`) |
19171917
| `--no-worktree` | Disabilita l'isolamento di git worktree in modalità automatica |
1918-
| `-c, --auto-commit` | Effettua il commit automatico delle modifiche dopo aver completato le attività |
1918+
| `--auto-commit` | Effettua il commit automatico delle modifiche dopo aver completato le attività |
19191919
| `--patch` | Genera patch git senza applicare modifiche |
19201920
| `--output <file>` | File di output per la patch (usato con --patch) |
19211921

‎docs/config-reference_ja.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ Autohandは `~/.autohand/`(または `$AUTOHAND_HOME`)にデータを保存
13761376
| `--patch` | 変更を適用せずにgitパッチを生成 |
13771377
| `--output <file>` | パッチの出力ファイル(--patchと併用) |
13781378
| `--auto-skill` | プロジェクト分析に基づいてスキルを自動生成(対話型は `/learn` を参照) |
1379-
| `-c, --auto-commit` | タスク完了後に変更を自動コミット |
1379+
| `--auto-commit` | タスク完了後に変更を自動コミット |
13801380
| `--login` | Autohandアカウントにサインイン |
13811381
| `--logout` | Autohandアカウントからサインアウト |
13821382
| `--setup` | セットアップウィザードを実行してAutohandを設定または再設定 |

‎docs/config-reference_ru.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,7 @@ Autohand хранит данные в `~/.autohand/` (или `$AUTOHAND_HOME`):
19151915
| `--worktree [name]` | Запустить сеанс в изолированном рабочем дереве git (необязательное рабочее дерево/имя ветки) |
19161916
| `--tmux` | Запуск в выделенном сеансе tmux (подразумевается `--worktree`; нельзя использовать с `--no-worktree`) |
19171917
| `--no-worktree` | Отключить изоляцию рабочего дерева git в автоматическом режиме |
1918-
| `-c, --auto-commit` | Автоматическое подтверждение изменений после выполнения задач |
1918+
| `--auto-commit` | Автоматическое подтверждение изменений после выполнения задач |
19191919
| `--patch` | Создать патч git без применения изменений |
19201920
| `--output <file>` | Выходной файл для патча (используется с --patch) |
19211921

0 commit comments

Comments
 (0)