Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
import { describe, expect, it } from 'vitest';
import { isHostManagedSession } from '@/session/hostManagedSession';
describe('host-managed Session presentation', () => {
it('trusts the authoritative Session source instead of route metadata', () => {
expect(isHostManagedSession({ source: 'bot' })).toBe(true);
expect(isHostManagedSession({ source: 'desktop' })).toBe(false);
expect(isHostManagedSession(null)).toBe(false);
});
});