Skip to content

Feat/UI optimize 0702#243

Merged
jsyqrt merged 8 commits into
mainfrom
feat/ui-optimize-0702
Jul 5, 2026
Merged

Feat/UI optimize 0702#243
jsyqrt merged 8 commits into
mainfrom
feat/ui-optimize-0702

Conversation

@jsyqrt

@jsyqrt jsyqrt commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

jsyqrt and others added 8 commits July 3, 2026 18:41
…conditions

Extract buffer management from Team.tsx into a pure ConversationBufferManager
class with a per-conversation phase state machine (idle/loading/ready/streaming).
Key fix: DB load results during streaming phase write to cache only, never to
display buffer, eliminating re-animation and message disappearance bugs.

Also adds a loadingChat state so session switches show a spinner instead of
the empty-chat greeting while messages load from DB.

Includes 47 unit tests covering phase transitions, write routing, cache
freshness, and race condition scenarios.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Unify DM and group chat A2A messaging via IM-style auto-reply model
  with processGroupChatReply orchestration and [NO_RESPONSE] termination
- Add pending callback system for async message/tool result tracking
- Enhance Notebook memory with Markdown format and structured sections
- Strengthen DM prompt guidance to prevent acknowledgment ping-pong loops
- Add server-side pure-acknowledgment auto-suppress for DM channels
- Collapse agent-to-agent DM channels in Team Chat sidebar (collapsible)
- Merge Mind tab into Overview tab in Agent Profile for consolidated view
- Add /goal and /task slash commands in chat input
- Update cognitive architecture, memory system, and API documentation

Co-authored-by: Cursor <cursoragent@cursor.com>
- Add React.lazy code splitting for Team/Work/Settings/Store/Builder pages
- Create shared dataCache layer with TTL + WS invalidation
- Eliminate sidebar N+1 polling; use WS-driven last-message updates
- Memoize AgentMessageBody/ChatTeamSidebar; cache segmentsToStreamEntries
- Defer entity mention catalog loading until user types @
- Deduplicate useUnreadCounts to single module-level polling interval
- Add LRU eviction (max 30) to sessionMsgCache in ConversationBufferManager
- Gate BottomNav polling behind visibility check; increase interval to 30s
- Reduce Home.tsx polling from 30s to 60s

Co-authored-by: Cursor <cursoragent@cursor.com>
3-tier system prompt cache optimization:
- Fix single-segment gate in Anthropic/OpenAI providers so triage cache hints work
- Move scenario section to end of Tier 2 for better prefix stability across mode switches
- Move colleague status and channel history to dynamic tier to protect Tier 2 cache
- Add cache_control on Anthropic tool definitions
- Split OpenAI system message by segments for implicit prefix caching
- Collect cached_tokens metrics from OpenAI provider

Tier 3 token reduction (~800-1800 tokens/call):
- Remove available skills listing, replace with count hint in Identity
- Remove project/shared deliverables injection (use deliverable_search on demand)
- Remove task description from task board entries (use task_get for details)
- Quantize notebook ages, mailbox elapsed time, and timestamp (minute-level)

Co-authored-by: Cursor <cursoragent@cursor.com>
…completeness

- Remove dead performTriage/triageJudge code path (~450 lines); only
  performDeliberation is used in production
- Enforce strict completeness in complete_deliberation: tool returns
  error until every mailbox item is accounted for
- Fix notify_user messages missing from agent context when user replies
  (stale in-memory session skipped DB reload)
- Fix quoted/reply messages not visible to agent — prepend quoted text
  and persist replyTo metadata for chat_messages
- Limit notebook agent entries from 15 to 4
- Fix pre-existing TS build error in anthropic.ts

Co-authored-by: Cursor <cursoragent@cursor.com>
…ation

Co-authored-by: Cursor <cursoragent@cursor.com>
@jsyqrt
jsyqrt merged commit 9962ab8 into main Jul 5, 2026
1 check passed
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