1 parent 9e15730 commit 03d69b2Copy full SHA for 03d69b2
2 files changed
src/contracts/agent/domain.ts
@@ -59,6 +59,7 @@ export interface Agent {
59
reasoning_depth?: number;
60
workspace_path?: string;
61
_local_timestamp?: number;
62
+ _telemetry_timestamp?: number;
63
active_mission?: {
64
id: string;
65
objective?: string;
src/stores/agent_store.ts
@@ -43,7 +43,7 @@ export const use_agent_store = <T = Agent_Store_State>(
43
const agents = raw_agents.map(agent => {
44
const live = telemetry.live_status[agent.id];
45
if (live) {
46
- const is_local_newer = (agent._local_timestamp || 0) >= ((live as { _telemetry_timestamp?: number })._telemetry_timestamp || 0);
+ const is_local_newer = (agent._local_timestamp || 0) >= (live._telemetry_timestamp || 0);
47
if (is_local_newer) {
48
return {
49
...live,
0 commit comments