The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
Revert the Factory-only partial-write fix in favour of the shared one
Claude7b98c9510bb4
diff --git a/cli/beacon/internal/factorysession/collect.go b/cli/beacon/internal/factorysession/collect.goindex 30f4c883..49cfa617 100644--- a/cli/beacon/internal/factorysession/collect.go+++ b/cli/beacon/internal/factorysession/collect.go@@ -202,19 +202,13 @@ func advanceCursor(cursor *Cursor, ref SessionRef, stats ReadStats) {func advanceCursorPartial(cursor *Cursor, ref SessionRef, mapped []MappedEvent, failedIdx int) {cursor.SourcePath = ref.Path- var lastCompleteLine int- found := falsefor i := 0; i < failedIdx; i++ {+ if mapped[i].SourceLine > cursor.LastLine {+ cursor.LastLine = mapped[i].SourceLine+ }if mapped[i].Event.Event.Action == "session.started" {cursor.Started = true}- if i+1 < len(mapped) && mapped[i+1].SourceLine != mapped[i].SourceLine {- lastCompleteLine = mapped[i].SourceLine- found = true- }- }- if found && lastCompleteLine > cursor.LastLine {- cursor.LastLine = lastCompleteLine}}