fix: five defects found while rewriting the docs (UF-061 to UF-065)
- Key messages named a Settings > API Keys tab that does not exist; they now point at Settings > Models (UF-061). - The connector suggestion looked for vault.db, which never exists; it now checks the vault for a connector entry (UF-062). - /config and /preferences were registered with a leading slash and never matched (UF-063). - Pins and documents were written under ~/.waggle whatever the data directory; they now use the server's data directory (UF-064). - The Windows uninstaller named a Data & Privacy page that does not exist (UF-065).
This commit is contained in:
@@ -275,5 +275,21 @@ describe('Proactive Handlers', () => {
|
||||
const result = await suggestCapabilities(ctx);
|
||||
expect(result).toBeNull();
|
||||
});
|
||||
|
||||
it('suggests connectors only while none is connected (UF-062)', async () => {
|
||||
fs.mkdirSync(path.join(tmpDir, 'skills', 'research-skill'), { recursive: true });
|
||||
const ws = wsManager.create({ name: 'Busy Project', group: 'Test' });
|
||||
for (let i = 0; i < 51; i++) {
|
||||
await memory.remember({ scope: workspaceScope(ws.id), text: `Distinct memory number ${i}` });
|
||||
}
|
||||
const entries = [{ name: 'anthropic', updatedAt: '2026-11-01T00:00:00.000Z' }];
|
||||
const ctx = { ...makeContext(), vault: { list: () => entries } };
|
||||
|
||||
const withoutConnector = await suggestCapabilities(ctx);
|
||||
expect(withoutConnector?.actionUrl).toBe('/connectors');
|
||||
|
||||
entries.push({ name: 'connector:github', updatedAt: '2026-11-01T00:00:00.000Z' });
|
||||
expect(await suggestCapabilities(ctx)).toBeNull();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user