mirror of
https://github.com/github/awesome-copilot.git
synced 2026-07-21 21:04:13 +00:00
fix: desk-open guards against overwriting existing desk state
Never initialize over existing journal.md — if the desk directory already exists, resume it instead. Operator must explicitly rename or archive before reusing a desk name. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 26faf13e-639c-4a21-ac05-c0dc2bff7c62
This commit is contained in:
@@ -29,7 +29,13 @@ desks/<desk-name>/
|
||||
how the operator and other desks refer to this desk.
|
||||
Examples: `security-scan`, `api-review`, `ops`, `cloud-workshop`
|
||||
|
||||
2. **Create the structure.** Make the directory, initial journal,
|
||||
2. **Check if it already exists.** If `desks/<desk-name>/` already
|
||||
has a `journal.md`, the desk is live — **do not overwrite it.**
|
||||
Instead, resume it: read the journal and continue from where it
|
||||
left off. If the operator explicitly wants a fresh start, they
|
||||
must rename or archive the existing desk first.
|
||||
|
||||
3. **Create the structure.** Make the directory, initial journal,
|
||||
and signals folder:
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user