Whole file
hongdangmoo49/Trinity
The author described this change as “fix: avoid missing workflow events traceback”. It counts as a record because the checks below fail on the code as it stood at 5add4aead and pass on e7588cd5b, with nothing else changed between the two runs.
Projecthongdangmoo49/Trinity
Fix saved2026-06-17
Sharing licenceMIT · LICENSE
Change size+4 −0
What the code was meant to do, written into the code itself as a save note
fix: avoid missing workflow events traceback
The change
| 455 | 455 | if limit == 0: | |
| 456 | 456 | return [] | |
| 457 | 457 | selected = selected[-limit:] | |
| 458 | + | if not selected: | |
| 459 | + | return [] | |
| 458 | 460 | events = self._read_indexed_events(selected) | |
| 459 | 461 | if events is None: | |
| 460 | 462 | return None | |
| ⋯ | |||
| 464 | 466 | self, | |
| 465 | 467 | entries: list[dict[str, Any]], | |
| 466 | 468 | ) -> list[dict[str, Any]] | None: | |
| 469 | + | if not entries: | |
| 470 | + | return [] | |
| 467 | 471 | events: list[dict[str, Any]] = [] | |
| 468 | 472 | try: | |
| 469 | 473 | with self.events_path.open("rb") as fh: | |
The check that tells the two apart
fail→pass·tests/test_workflow_persistence.py::test_workflow_persistence_ignores_index_when_live_log_was_removed
fail→pass·tests/test_workflow_persistence.py::test_workflow_persistence_returns_empty_events_without_live_log
Check file tests/test_workflow_persistence.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it5add4aeaddf3f576a8e8b530f90ccecdef54638c
Broken version dated2026-06-17
Moduletrinity.workflow.persistence
Units changedWorkflowPersistence
Fingerprint34da1eaa2c1a7e91
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in hongdangmoo49/Trinity
- 2026-06-06fix: reuse target workspace for workflow followups
- 2026-06-05fix(tui): address code quality review for SacredGeometryAnimator
- 2026-06-03fix: make rotation/warning thresholds configurable instead of hardcoded
- 2026-06-03fix(security): prevent path traversal in ManagedHome read/write_config
- 2026-06-02fix: sanitize surrogate characters in SharedContextEngine.write()