This commit is contained in:
Rai (Michael Pokorny)
2025-06-25 05:09:00 -07:00
parent 3374a8bc3a
commit c70bd0aef8
2 changed files with 6 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
+++
id = "36"
title = "Add Tests for Interactive Prompting While Executing"
status = "Done"
status = "Not started"
dependencies = "06,13" # Rationale: depends on Tasks 06 and 13 for external editor and interactive prompt support
last_updated = "2025-06-25T11:05:55Z"
+++

View File

@@ -259,6 +259,11 @@ def set_status(task_id, status):
meta.status = status
meta.last_updated = datetime.utcnow()
save_task(path, meta, body)
# If the task was previously in .done/ and is being re-opened, move it back to tasks/
if path.parent.name == '.done' and meta.status not in (TaskStatus.DONE, TaskStatus.MERGED):
dest = task_dir() / path.name
click.echo(f"Reopening task: moving {path.name} -> {dest.parent.relative_to(repo_root())}")
subprocess.run(['git', 'mv', str(path), str(dest)], cwd=repo_root())
@cli.command()
@click.argument('task_id')