mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-15 02:49:33 +01:00
test(edit-history): the live conversation wins even when older; tighter wiring guard
Review round 3 (all low): - the "written last" test left solo newer than conv-1 for the rest of the file, so the live test passed by mtime alone. solo's mtime is reset in a finally, and the live test now runs with the live transcript older than the stored one (a /resume into an older conversation before it writes). - the server wiring guard matches the remote branch of the ternary as one expression, so swapped branches fail it. - note on whole-second `-nt` (BusyBox, bash 3.2) at the lookup. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
5bcec26066
commit
f27fda0f45
3 files changed
+18
-9
No files matched your search
@@ -542,6 +542,8 @@ export function buildRemoteClaudeTranscriptLocateCommand(ids: readonly string[],
|
||||
'best=',
|
||||
...claudeConfigDirLines(),
|
||||
// newest <id>: `best` becomes that id's transcript if it is newer than the current best.
|
||||
// BusyBox's (and bash 3.2's) `-nt` compares whole seconds: a tie keeps the earlier id, the
|
||||
// stored conversation, until the next write; only without a live id.
|
||||
'newest() {',
|
||||
' for f in "$cfg"/projects/*/"$1".jsonl; do',
|
||||
' [ -f "$f" ] || continue',
|
||||
|
||||
Reference in new issue
Block a user