Repository navigation
Conversation
官方 system 保持关闭。调用方原文拆出后只包一层 reminder,已有包装和 MANDATORY 行先去掉。调用方自带的 Environment 仍留在 system。
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 31ef0627-2d62-4287-9d81-a95325a938e6) |
unwrapSystemReminder 去掉最多四层标签后再去掉约束行,避免提醒里套两层。单测覆盖默认官方档和完整档的空、纯文本、已包过三种输入。
|
补上 MANDATORY 行剥离。
|
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 9c2330c1-4b5c-4344-8cef-9b6021195715) |
补充「未发布」说明第三方 system 进首条 user 的 system-reminder 行为; 将仍期望 official system 末段承载 caller 的断言改为首条 user 或 4 块结构。 Co-authored-by: ted <kuhlmangarry24@gmail.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 20d9554f-b5aa-458d-91a2-dee1a5aca41d) |
|
关闭:第三方 system 包成 放进第一条 user、解包时去掉已有 MANDATORY 行,这两点已随 #730 在 main 实现(persona-template.mjs 的 caller_system 块、crs-persona.mjs 的 MANDATORY_CONSTRAINT_LINE)。本 PR 的实现与 main 冲突,不再单独合并。 |
Summary
<system-reminder>。# Environment仍留在 system,不进 reminder。official/official_full×sdk-cli/cli× 空 / 纯文本 / 已包过。该 e2e 依赖本地 main 上尚未推送的链路,没有放进这个 PR。Test plan
node --test test/unit/persona-template.test.mjs:48 passverify-live.py。本 PR 未部署、未合并。Note
Medium Risk
Changes outbound request shape for all unofficial traffic with custom system prompts (system block count, cache prefixes, and token-hiding overlays), though behavior is covered by broad unit test updates.
Overview
Third-party
systemtext no longer lands in the fifth officialsystem[]block. With the default four-block layout, outboundsystemstays length 4 when there is no caller text; caller-supplied# Environmentsections still append tosystem[]unchanged.Everything else from the caller (plain system strings, including content that was already wrapped) is prepended to the first user message as a single
<system-reminder>layer—no extra MANDATORY wrapper on that path.unwrapSystemRemindernow peels nested reminders (up to four layers) and strips the MANDATORY constraint line so reminders are not doubled. Empty caller system produces no reminder.Persona rendering splits
caller_system-only template blocks from official blocks (stripping{{caller_system}}from the latter), renders caller parts withrenderPersonaTemplate(..., { standing: false }), and wires the new user-prefix behavior inapplyCrsUnofficialPersona. Unit tests across persona, cli-hop, and API backend assert the new shape and usage-overlay expectations.Reviewed by Cursor Bugbot for commit d605605. Configure here.
摘要
system不再进官方system[]末段,非 Environment 文本进首条 user 的<system-reminder>等)。system.length5→4(无 Environment 尾块时);usage 侧 overlay 计数随 caller reminder 调整。测试
本地
node --test:test/unit/crs-persona.test.mjstest/unit/persona-coverage.mock.test.mjstest/unit/persona-settings-switch.test.mjstest/unit/crs-persona-usage.test.mjstest/unit/cli-hop-body.test.mjstest/unit/api-backend.test.mjstest/unit/crs-clean.test.mjstest/unit/persona-template.test.mjs(203 + persona-template 相关用例通过;未 rebase main,#727 尚未合入。)