Skip to content

Optimize static system prompt caching#1040

Open
ryokun6 wants to merge 2 commits intomainfrom
cursor/static-system-prompts-8c7b
Open

Optimize static system prompt caching#1040
ryokun6 wants to merge 2 commits intomainfrom
cursor/static-system-prompts-8c7b

Conversation

@ryokun6
Copy link
Copy Markdown
Owner

@ryokun6 ryokun6 commented Apr 9, 2026

Summary

  • Added a shared prompt-cache helper for cacheable static system messages and uncached dynamic context messages.
  • Updated chat, proactive greetings, Internet Explorer generation, applet AI, and room Ryo replies to keep stable instructions first and runtime/system state separate.
  • Added targeted tests that assert static cache markers stay off dynamic state messages.

Testing

  • bun test tests/test-system-prompt-cache.test.ts tests/test-ryo-conversation-web-search.test.ts tests/test-telegram-heartbeat.test.ts tests/test-applet-ai-config.test.ts
  • bun run build
  • bun run lint
Open in Web Open in Cursor 

cursoragent and others added 2 commits April 8, 2026 14:54
Co-authored-by: Ryo Lu <me@ryo.lu>
Co-authored-by: Ryo Lu <me@ryo.lu>
@cursor
Copy link
Copy Markdown

cursor Bot commented Apr 9, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@ryos-deploy
Copy link
Copy Markdown

ryos-deploy Bot commented Apr 9, 2026

The preview deployment for ryos-dev is ready. 🟢

Open Preview | Open Build Logs | Open Application Logs

Last updated at: 2026-04-09 03:54:46 CET

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.

2 participants