# extendify/3.2.1/src/Agent/state/status.js

Extendify, version 3.2.1. 19 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.1/code/src/Agent/state/status.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.1/raw/src/Agent/state/status.js
- Modified: 2026-08-20T19:51:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.2.1/code/src/Agent/state/status.js#L10-L20`.

```javascript
import { makeId } from '@agent/lib/util';
import { create } from 'zustand';

// Progress statuses live outside the message chain so they're never persisted
// or sent to the AI; the chat store clears them on every real message.
export const useStatusStore = create((set, get) => ({
	statuses: [],
	// Never cleared — navigation replaces the page.
	leavingPage: false,
	setLeavingPage: (leavingPage) => set({ leavingPage }),
	pushStatus: (type, label) =>
		set((state) => ({
			statuses: [...state.statuses, { id: makeId(), type, label }],
		})),
	clearStatuses: () =>
		set((state) => (state.statuses.length ? { statuses: [] } : state)),
	getLatestStatus: () => get().statuses.at(-1) ?? null,
}));

```
