MCPcopy
hub / github.com/marimo-team/marimo / updateSessionLastUsed

Function updateSessionLastUsed

frontend/src/components/chat/acp/state.ts:188–200  ·  view source on GitHub ↗
(
  state: AgentSessionState,
  sessionId: TabId,
)

Source from the content-addressed store, hash-verified

186}
187
188export function updateSessionLastUsed(
189 state: AgentSessionState,
190 sessionId: TabId,
191): AgentSessionState {
192 return {
193 ...state,
194 sessions: state.sessions.map((session) =>
195 session.tabId === sessionId
196 ? { ...session, lastUsedAt: Date.now() }
197 : session,
198 ),
199 };
200}
201
202/**
203 * Update the sessionId for the currently selected tab

Callers 2

session-tabs.tsxFile · 0.90
state.test.tsFile · 0.90

Calls 2

mapMethod · 0.45
nowMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…