MCPcopy Create free account
hub / github.com/Microck/opencode-studio / getPendingAction

Function getPendingAction

client-next/src/lib/api.ts:156–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154}
155
156export async function getPendingAction(): Promise<PendingAction | null> {
157 try {
158 const { data } = await api.get<{ action: PendingAction | null }>('/pending-action');
159 return data.action;
160 } catch {
161 return null;
162 }
163}
164
165export async function clearPendingAction(): Promise<void> {
166 try {

Callers 1

AppProviderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected