Repository navigation
feat: add opt-in, versioned watchlist context per run - #418
Open
2859493743 wants to merge 1 commit into
Open
2859493743 wants to merge 1 commit into
2859493743 wants to merge 1 commit into
Conversation
2859493743
marked this pull request as ready for review
November 10, 2026 17:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Scope: This PR implements the Watchlist portion only. Portfolio context, watchlist metadata (tags/groups/thesis), and the remaining Issue #37 acceptance criteria are not included. It does not close #37.
Validation
Environment: Windows 11 Home 10.0.26200 x64, Bun 1.4.1, Electron 39.8.9, LongBridge CLI 0.31.1.
bun test --isolate packages/shared/src/kernel/watchlist-context.test.ts packages/shared/src/agent/workspace-context.test.ts packages/shared/src/kernel/run-manager.test.ts packages/ui/src/atoms/watchlistContextAtoms.test.ts packages/ui/src/components/agent/WatchlistContextControl.test.tsx packages/ui/src/lib/persistedPrefs.test.ts apps/electron/src/main/kernelHost.test.ts packages/shared/src/agent/pi-runtime-adapter.test.ts packages/shared/src/agent/pi-runtime-agent-backend.test.ts packages/core/src/instrument.test.ts→ 103 passed, 0 failed.bun test --isolate packages/ui/src/atoms/quoteAtoms.test.ts→ 8 passed, 0 failed.bun run typecheck→ passed.bun run i18n:check→ passed; en-US and zh-CN parity, 0 issues.git diff --check→ passed.hub/gpt-6.1-terra: queried five real watchlist listings via LongBridgeget_kline; 5/5 calls completed with persisted evidence and resolved citations, and the historical run snapshot remained unchanged after reload.UI screenshot
Known limitations