fix: disinto init can produce duplicate keys in projects/*.toml #269
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#269
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When
disinto initupdates an existing projects/*.toml (e.g. writing ops_repo), it appends or sed-replaces without checking if the key already exists from a prior manual edit or earlier init run. This produces duplicate TOML keys which cause a parse error:Observed: projects/disinto.toml had ops_repo on both line 7 and line 10 after running init on a TOML that was manually edited.
This broke both dev-poll and review-poll — all agents stopped picking up work because the project config couldn't be loaded.
Proposed solution
Before writing a key to the TOML, check if it already exists and update in place rather than appending:
Or better: use the Python TOML writer that handles this correctly.
Affected files
Acceptance criteria
Blocked — issue #269
no_push2026-04-06T06:58:24ZDiagnostic output
Blocked — issue #269
no_push2026-04-06T07:54:05ZDiagnostic output