fix(session): log --last 0 means no backlog
debug.log handed `last` to the timeline query, where 0 means every entry, so `log --follow --last 0` streamed the whole ring of up to 8192 entries before the new ones, where an agent reads it as tail -n 0 -f: nothing old, only what comes next. 0 now means no backlog, followed or not, and the guide says that --follow starts with the last 50. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
29f1eed9ab
commit
b95c594be8
2 changed files with 7 additions and 3 deletions
|
|
@ -984,7 +984,8 @@ memory are a debugger's job; `crafter-debug debugger` prints how to attach one.
|
|||
trace <sample> --history a Debug::Sample's recent history
|
||||
log [--last 50] [--level info|warn|error] [--cat <glob>] [--grep <text>]
|
||||
[--since-frame n] [--kinds log,warn,error,check,event,agent,pause,stdio]
|
||||
log --follow [--for 30m] streams new entries; run it under Monitor
|
||||
log --follow [--for 30m] the last 50 (--last; 0 for none), then new
|
||||
entries as they come; run it under Monitor
|
||||
screenshot [-o shot.png] default ./build/crafter-debug-shots/
|
||||
quit [--force] --force exits even if the loop is stuck
|
||||
debugger how to attach lldb or gdb
|
||||
|
|
|
|||
Loading…
Reference in a new issue