Skip to content

Fix memory/graph bugs and wire up Knowledge Pulse#2

Merged
Yashasm18 merged 1 commit into
mainfrom
fix/knowledge-pulse-wiring-and-bugs
Jul 14, 2026
Merged

Fix memory/graph bugs and wire up Knowledge Pulse#2
Yashasm18 merged 1 commit into
mainfrom
fix/knowledge-pulse-wiring-and-bugs

Conversation

@Yashasm18

@Yashasm18 Yashasm18 commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix /analyze/memory returning 500 instead of 400 for empty text (validation error was being caught by the generic exception handler and re-raised)
  • Fix relationship confidence of 0 being silently overwritten by the 0.9 default (||??)
  • Fix query_memory tool results never reaching setRetrievedMemories (frontend expected the whole tool result to be an array; results now come through a dedicated memories field)
  • Render <KnowledgePulse /> in AppShell instead of its old inline "Knowledge Context" panel, so the memory-confidence UI is actually reachable

Note on scope

This branch was originally going to fully wire entities/relationships/graph-activity into the Knowledge Pulse panel via the Python intelligence layer, but that call was removed from storeMemory by later commits on main (multi-tenant workspace isolation / hardening work). Re-adding a synchronous external HTTP call to every memory write is a deliberate architecture decision, not something to bundle into a bug-fix PR — so those panel sections remain present but empty for now.

Test plan

  • tsc --noEmit on apps/web — clean (only pre-existing, unrelated stale .next type errors remain)
  • Manual verification in the running app (needs local Ollama + Qdrant + the Python intelligence service) not performed in this session

🤖 Generated with Claude Code

- Fix /analyze/memory returning 500 instead of 400 for empty text
  (the validation HTTPException was being caught by the generic
  exception handler and re-raised as a 500)
- Fix relationship confidence of 0 being silently overwritten by
  the 0.9 default (|| -> ??)
- Fix query_memory tool results never reaching setRetrievedMemories:
  the frontend expected the whole tool result to be an array, but it
  was always {tool, output, success}; results now come through a
  dedicated `memories` field
- Render <KnowledgePulse /> in AppShell instead of its old inline
  "Knowledge Context" panel, so the memory-confidence UI is reachable

Note: this branch does not reintroduce the Python intelligence-layer
call into storeMemory (entities/relationships/graph-activity stay
empty in the panel). That call was removed by later upstream commits
(multi-tenant workspace isolation / hardening), and re-adding a
synchronous external HTTP call to every memory write should be a
deliberate follow-up decision, not bundled into a bug-fix branch.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Yashasm18
Yashasm18 force-pushed the fix/knowledge-pulse-wiring-and-bugs branch from d1281f2 to f9b0f6b Compare July 14, 2026 03:45
@Yashasm18
Yashasm18 merged commit 42f6529 into main Jul 14, 2026
2 checks passed
@Yashasm18
Yashasm18 deleted the fix/knowledge-pulse-wiring-and-bugs branch July 14, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant