MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / pending_turn_number

Function pending_turn_number

atomic-cli/src/commands/agent/lifecycle.rs:987–993  ·  view source on GitHub ↗
(session: &AgentSession)

Source from the content-addressed store, hash-verified

985}
986
987fn pending_turn_number(session: &AgentSession) -> u32 {
988 if session.is_turn_active() {
989 session.turn_count.saturating_add(1)
990 } else {
991 session.turn_count.max(1)
992 }
993}
994
995/// The journal sink for lifecycle transitions: the daemon's RPC sink
996/// (D4 start-or-retry — the daemon is the only repository journal writer).

Callers 4

stop_lifecycle_turnsFunction · 0.85
resume_lifecycle_turnsFunction · 0.85
abandon_lifecycle_turnsFunction · 0.85

Calls 1

is_turn_activeMethod · 0.80

Tested by

no test coverage detected