lobehub/packages
LiJian 665b482390
🐛 fix: inject timezone and cron jobs list into cron tool system prompt (#14012)
* 🐛 fix: inject timezone and cron jobs list into cron tool system prompt

Add {{timezone}} to cron systemRole session_context so the model knows
the user's local timezone when creating scheduled tasks. Wire up the
{{CRON_JOBS_LIST}} placeholder that was already referenced in the
systemRole but never populated — now fetches the agent's existing cron
jobs via tRPC and injects them, following the same pattern as CREDS_LIST.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* 🐛 fix: limit cron jobs context to 4 items to save context window

Only inject a preview of up to 4 cron jobs into the system prompt.
When there are more, append a hint directing the model to call
listCronJobs API for the full list. This avoids bloating the context
window for agents with many scheduled tasks.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-21 15:25:55 +08:00
..
agent-gateway-client ♻️ refactor: extract agent-stream into @lobechat/agent-gateway-client package (#13866) 2026-04-16 11:25:32 +08:00
agent-manager-runtime 🐛 fix: remove systemRole truncation in getAgentDetail (#13988) 2026-04-20 14:26:16 +08:00
agent-runtime feat(agent-runtime): server-side human approval flow (#13829) 2026-04-15 11:07:06 +08:00
agent-templates 🐛 fix: allow templates to specify policyLoad so default docs are fully injected (#13672) 2026-04-09 10:09:05 +08:00
agent-tracing 🐛 fix: resolve agent runtime service error serialization producing [object Object] (#13704) 2026-04-10 00:01:01 +08:00
builtin-agents ♻️ refactor(web-onboarding): rename doc tools and drive incremental persona writes (#13933) 2026-04-18 20:02:39 +08:00
builtin-skills 🐛 fix: should inject current agnets information when actived the lobehub_skill (#13661) 2026-04-09 16:11:18 +08:00
builtin-tool-activator 🐛 fix: fallback to skill activation when activateTools cannot find identifier (#14010) 2026-04-21 14:04:58 +08:00
builtin-tool-agent-builder feat(agent-browser): add browser automation skill and tool detection (#12858) 2026-03-10 16:13:33 +08:00
builtin-tool-agent-documents ♻️ refactor(agent-documents): fix title/documentId flow + split Inspector per action (#13940) 2026-04-19 01:06:06 +08:00
builtin-tool-agent-management ♻️ refactor: add more tools in lobe-agent-manangerment(modify、update、delete) (#13842) 2026-04-15 17:57:05 +08:00
builtin-tool-brief feat: support agent tasks system (#13289) 2026-03-26 17:43:51 +08:00
builtin-tool-calculator ⬆️ chore(deps): migrate @lobehub/ui to base-ui exports (#12587) 2026-03-02 22:40:46 +08:00
builtin-tool-claude-code 💄 style(thread): sync id allocation + ChatMiniMap polish (#14000) 2026-04-21 01:27:01 +08:00
builtin-tool-cloud-sandbox ♻️ refactor: update the codesandbox systemRole(preinstalled_software) (#13799) 2026-04-14 12:11:44 +08:00
builtin-tool-creds 🐛 fix: fixed the when call saveCreds the bad request problem (#13809) 2026-04-14 17:51:00 +08:00
builtin-tool-cron 🐛 fix: inject timezone and cron jobs list into cron tool system prompt (#14012) 2026-04-21 15:25:55 +08:00
builtin-tool-group-agent-builder feat(onboarding): agent web onboarding, feature toggle, and lifecycle sync (#13139) 2026-03-30 20:28:54 +08:00
builtin-tool-group-management 💄 style: batch fix eslint violations across packages (#12601) 2026-03-03 02:19:50 +08:00
builtin-tool-gtd 🐛 fix(builtin-tool-gtd): add server runtime for GTD tool (#13854) 2026-04-16 00:04:48 +08:00
builtin-tool-knowledge-base 🐛 fix: add some lost lobe-kb builtin tools (#13876) 2026-04-16 17:08:22 +08:00
builtin-tool-local-system 📝 docs: Update changelog docs and release skills (#13897) 2026-04-16 22:24:48 +08:00
builtin-tool-memory ♻️ refactor: remove promptfoo configs and dependencies (#13665) 2026-04-08 17:50:55 +08:00
builtin-tool-message 🔨 chore: optimize message tool (#13444) 2026-03-31 21:28:18 +08:00
builtin-tool-notebook feat: support agent tasks system (#13289) 2026-03-26 17:43:51 +08:00
builtin-tool-page-agent ♻️ refactor(chat): remove reject-only button, unify to rejected_continue (#13865) 2026-04-16 10:45:17 +08:00
builtin-tool-remote-device feat: improve agent context injection (skills discovery, device optimization, prompt cleanup) (#13021) 2026-03-17 00:35:18 +08:00
builtin-tool-skill-store ♻️ refactor: add the user creds modules & skill should auto inject the need creds (#13124) 2026-03-24 14:28:23 +08:00
builtin-tool-skills 🐛 fix: add the lost tools into manual agent runtime mode (#13918) 2026-04-17 17:02:53 +08:00
builtin-tool-task feat: support agent tasks system (#13289) 2026-03-26 17:43:51 +08:00
builtin-tool-topic-reference ♻️ refactor(tool): decouple topic-reference executor from app TRPC client (#13451) 2026-03-31 23:27:42 +08:00
builtin-tool-user-interaction 💄 style: Update agent onboarding style (#13678) 2026-04-10 10:44:09 +08:00
builtin-tool-web-browsing feat: associate web crawl documents with agent documents (#13893) 2026-04-16 23:11:21 +08:00
builtin-tool-web-onboarding feat(onboarding): structured hunk ops for updateDocument (#13989) 2026-04-20 21:17:28 +08:00
builtin-tools feat: claude code intergration polish (#13942) 2026-04-18 13:42:00 +08:00
business feat: support model alias mapping for image and video runtimes (#13896) 2026-04-20 09:38:56 +08:00
chat-adapter-feishu feat: support multi media and multiple connection mode (#13624) 2026-04-09 14:16:03 +08:00
chat-adapter-qq feat: support multi media and multiple connection mode (#13624) 2026-04-09 14:16:03 +08:00
chat-adapter-wechat feat: support multi media and multiple connection mode (#13624) 2026-04-09 14:16:03 +08:00
config feat: add notification system (temporarily disabled) (#13301) 2026-03-26 21:16:38 +08:00
const ♻️ refactor(types): break circular dep between types and const packages (#13948) 2026-04-18 22:36:13 +08:00
context-engine feat(onboarding): structured hunk ops for updateDocument (#13989) 2026-04-20 21:17:28 +08:00
conversation-flow 💄 style(tab-bar): blend inactive tabs with titlebar, show close icon by default (#13973) 2026-04-19 21:53:22 +08:00
database 💄 style(thread): sync id allocation + ChatMiniMap polish (#14000) 2026-04-21 01:27:01 +08:00
desktop-bridge feat(trpc): add response metadata and auth header handling (#11816) 2026-01-25 20:39:51 +08:00
device-gateway-client 🐛 fix(device-gateway-client): prevent uncaught WebSocket error on disconnect (#13635) 2026-04-07 23:59:03 +08:00
edge-config feat: billboard in sidebar (#13962) 2026-04-19 00:00:34 +08:00
editor-runtime feat(document): add history management and compare workflow (#13725) 2026-04-16 23:24:28 +08:00
electron-client-ipc feat(electron): add Cmd+W/Cmd+T tab shortcuts with misc desktop polish (#13983) 2026-04-20 12:38:54 +08:00
electron-server-ipc 📝 docs: Polishing and improving product documentation (#12612) 2026-03-03 16:01:41 +08:00
eval-dataset-parser test: add unit tests for eval-dataset-parser (#13197) 2026-03-25 10:55:58 +08:00
eval-rubric feat(eval): add external scoring mode (#12729) 2026-03-10 09:53:26 +08:00
fetch-sse 🐛 fix(fetch-sse): stop injecting contextBody into structured provider errors (#13477) 2026-04-01 21:24:01 +08:00
file-loaders 📝 docs: Polishing and improving product documentation (#12612) 2026-03-03 16:01:41 +08:00
heterogeneous-agents 🐛 fix: hetero-agent ToolSearch content + bot IM reply + titlebar polish (#13998) 2026-04-20 23:11:34 +08:00
local-file-shell feat(desktop): embed CLI in app and PATH install (#13669) 2026-04-09 00:53:49 +08:00
markdown-patch feat(onboarding): structured hunk ops for updateDocument (#13989) 2026-04-20 21:17:28 +08:00
memory-user-memory ♻️ refactor: remove promptfoo configs and dependencies (#13665) 2026-04-08 17:50:55 +08:00
model-bank 💄 style: add Kimi K2.6 to LobeHub-hosted card (#14006) 2026-04-21 11:40:15 +08:00
model-runtime 💄 style: add Kimi K2.6 to LobeHub-hosted card (#14006) 2026-04-21 11:40:15 +08:00
observability-otel 🔨 chore: remove dead eslint disable comments for deleted rules (#12597) 2026-03-02 23:18:01 +08:00
openapi 🐛 fix(kb): clean up vector storage when deleting knowledge bases (#13254) 2026-04-10 01:56:05 +08:00
prompts 🔨 chore: return full brief data in task activities (#13914) 2026-04-17 19:10:48 +08:00
python-interpreter feat(desktop): implement subscription pages embedding with webview (#12114) 2026-02-11 13:05:10 +08:00
shared-tool-ui 💄 style(shared-tool-ui): wrap Bash inspector in a rounded chip (#13959) 2026-04-18 22:01:23 +08:00
ssrf-safe-fetch 🐛 fix: distinguish SSRF block errors from network errors (#13103) 2026-03-18 18:16:19 +08:00
tool-runtime ♻️ refactor: unify tool content formatting with ComputerRuntime and shared UI (#13470) 2026-04-02 19:42:45 +08:00
types 💄 style(thread): sync id allocation + ChatMiniMap polish (#14000) 2026-04-21 01:27:01 +08:00
utils feat(cc): account card, topic filter, and CC integration polish (#13955) 2026-04-18 21:58:50 +08:00
web-crawler 🐛 fix(web-crawler): prevent happy-dom CSS parsing crash in htmlToMarkdown (#13652) 2026-04-08 12:59:49 +08:00