Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: remove recent history banner from mind

Adam Eivy5a9b56e31709
diff --git a/client/src/components/cos/tabs/MindTab.jsx b/client/src/components/cos/tabs/MindTab.jsx
index 2be494b21b..ca758eda0a 100644
--- a/client/src/components/cos/tabs/MindTab.jsx
+++ b/client/src/components/cos/tabs/MindTab.jsx
@@ -127,7 +127,6 @@ export default function MindTab() {
const [mind, setMind] = useState(null);
const [loadError, setLoadError] = useState(null);
const [gap, setGap] = useState(false);
- const [truncated, setTruncated] = useState(false);
const [loading, setLoading] = useState(true);
const [messageText, setMessageText] = useState('');
const [submitting, setSubmitting] = useState(false);
@@ -176,14 +175,12 @@ export default function MindTab() {
let page = 0;
let accumulated = [];
let sawGap = false;
- let sawTruncation = false;
let needsMore = false;
try {
do {
const response = await api.getPersistentMind({ cursor, limit: PAGE_LIMIT }, { silent: true });
accumulated = mergeEvents(accumulated, response.events || []);
sawGap ||= response.gap === true;
- sawTruncation ||= response.truncated === true;
cursor = response.gap === true ? response.cursor : response.cursor || cursor;
setMind({
state: response.state,
@@ -198,7 +195,6 @@ export default function MindTab() {
cursorRef.current = cursor;
setEvents((previous) => reset || sawGap || previous === null ? accumulated : mergeEvents(previous, accumulated));
setGap(sawGap);
- setTruncated((current) => reset ? sawTruncation : current || sawTruncation);
setLoadError(null);
if (needsMore) deferredLoadRef.current = true;
} catch (error) {
@@ -504,7 +500,6 @@ export default function MindTab() {
<TabPills tabs={MIND_TABS} activeTab={activeView} onChange={changeView} variant="pills" size="sm" ariaLabel="Persistent mind view" />
{gap && <Banner tone="warning" title="History gap detected">The saved cursor is no longer retained. The visible trace was reloaded from the newest bounded snapshot.</Banner>}
- {truncated && <Banner tone="info" title="Showing recent history">The initial trace shows the newest {PAGE_LIMIT} events; older retained events are not shown.</Banner>}
{loadError && <Banner tone="error" title="Conversation unavailable">{loadError}. Existing messages are preserved; retry when the connection recovers.</Banner>}
{lifecycleError && <Banner tone="error" title="Action failed">{lifecycleError}</Banner>}
diff --git a/client/src/components/cos/tabs/MindTab.test.jsx b/client/src/components/cos/tabs/MindTab.test.jsx
index 4ed5de7782..3921105364 100644
--- a/client/src/components/cos/tabs/MindTab.test.jsx
+++ b/client/src/components/cos/tabs/MindTab.test.jsx
@@ -207,10 +207,11 @@ describe('MindTab', () => {
expect(api.getPersistentMind.mock.calls[2][0].cursor).toBeNull();
});
- it('labels a bounded initial snapshot as truncated', async () => {
+ it('keeps a bounded initial snapshot free of a history banner', async () => {
api.getPersistentMind.mockResolvedValue(response({ truncated: true }));
renderTab();
- expect(await screen.findByText('Showing recent history')).toBeInTheDocument();
+ await screen.findByText('Review the next bounded slice.');
+ expect(screen.queryByText('Showing recent history')).not.toBeInTheDocument();
});
it('puts the AI profile controls before start and starts only after the profile save finishes', async () => {