zames_pro 2.29.6 → 2.29.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/config.js CHANGED
@@ -46,6 +46,7 @@ export const DEFAULTS = {
46
46
  maxIncompleteRetries: 4,
47
47
  incompleteWaitMs: 2000,
48
48
  autoContinue: true,
49
+ resendPromptOnResume: false,
49
50
  deepThinking: false,
50
51
  webSearch: true,
51
52
  auth: {
@@ -255,6 +256,12 @@ export const CONFIG_SCHEMA = [
255
256
  labelKey: 'cfg.f.browser_autoContinue',
256
257
  groupKey: 'cfg.group.browser',
257
258
  },
259
+ {
260
+ path: 'browser.resendPromptOnResume',
261
+ type: 'boolean',
262
+ labelKey: 'cfg.f.browser_resendPromptOnResume',
263
+ groupKey: 'cfg.group.browser',
264
+ },
258
265
  {
259
266
  path: 'browser.deepThinking',
260
267
  type: 'boolean',
package/dist/i18n.js CHANGED
@@ -878,6 +878,10 @@ const CATALOG = {
878
878
  ru: 'Автонажатие кнопки Continue (режим размышления)',
879
879
  en: 'Auto-click Continue (reasoning mode)',
880
880
  },
881
+ 'cfg.f.browser_resendPromptOnResume': {
882
+ ru: 'Пересылать системный промпт при возобновлении чата',
883
+ en: 'Resend the system prompt on chat resume',
884
+ },
881
885
  'cfg.f.browser_deepThinking': {
882
886
  ru: 'Глубокое мышление (долго; размышления не выводятся)',
883
887
  en: 'Deep thinking (slow; reasoning is hidden)',
package/dist/index.js CHANGED
@@ -1114,7 +1114,8 @@ async function main() {
1114
1114
  console.log(theme.system(t('msg.opening_chat', { id: resumeId })));
1115
1115
  await browser.openChat(resumeId);
1116
1116
  freshChat = false;
1117
- sendSystemPrompt = resendPrompt;
1117
+ sendSystemPrompt =
1118
+ resendPrompt || config.browser.resendPromptOnResume === true;
1118
1119
  saveLastChat(resumeId, currentWorkdir);
1119
1120
  }
1120
1121
  catch (e) {
@@ -1142,6 +1143,11 @@ async function main() {
1142
1143
  console.log(theme.system(t('msg.queue_hint')));
1143
1144
  let freshChatNext = true;
1144
1145
  let sendSystemPromptNext = true;
1146
+ // Resuming an existing chat already has the system-prompt at its start, so
1147
+ // resending it is wasteful and pollutes the context. Default: do NOT resend.
1148
+ // `--resend-prompt` or `browser.resendPromptOnResume` forces it (e.g. when
1149
+ // the prompt/tools changed).
1150
+ const promptOnResume = () => resendPrompt || config.browser.resendPromptOnResume === true;
1145
1151
  let lastChats = [];
1146
1152
  let currentChatId = null;
1147
1153
  let running = true;
@@ -1187,7 +1193,7 @@ async function main() {
1187
1193
  await browser.openChat(resumeId);
1188
1194
  currentChatId = resumeId;
1189
1195
  freshChatNext = false;
1190
- sendSystemPromptNext = true;
1196
+ sendSystemPromptNext = promptOnResume();
1191
1197
  saveLastChat(resumeId, currentWorkdir);
1192
1198
  console.log(theme.system(t('msg.chat_opened') + ' ' + resumeId + String.fromCharCode(10)));
1193
1199
  await printRestoredHistory(browser, null, resumeId);
@@ -1892,11 +1898,15 @@ async function main() {
1892
1898
  await browser.openChat(pick.id);
1893
1899
  currentChatId = pick.id;
1894
1900
  freshChatNext = false;
1895
- sendSystemPromptNext = true;
1901
+ sendSystemPromptNext = promptOnResume();
1896
1902
  saveLastChat(pick.id, currentWorkdir, pick.title);
1897
1903
  transcript.log('resume_chat', { id: pick.id, title: pick.title });
1898
1904
  console.log(theme.assistant(t('msg.chat_opened')) +
1899
- theme.system(' Системный промпт будет переслан на следующей задаче (чтобы модель видела инструменты).\n'));
1905
+ theme.system(sendSystemPromptNext
1906
+ ? String.fromCharCode(10) +
1907
+ ' Системный промпт будет переслан на следующей задаче.\n'
1908
+ : String.fromCharCode(10) +
1909
+ ' Системный промпт НЕ пересылается (он уже в начале чата). Включить: /config set browser.resendPromptOnResume true.\n'));
1900
1910
  await printRestoredHistory(browser, editor, pick.id);
1901
1911
  }
1902
1912
  catch (e) {
@@ -1950,7 +1960,7 @@ async function main() {
1950
1960
  await browser.openChat(id);
1951
1961
  currentChatId = id;
1952
1962
  freshChatNext = false;
1953
- sendSystemPromptNext = true;
1963
+ sendSystemPromptNext = promptOnResume();
1954
1964
  saveLastChat(id, currentWorkdir);
1955
1965
  transcript.log('resume_chat', { id });
1956
1966
  console.log(theme.assistant('Чат открыт.') +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.29.6",
3
+ "version": "2.29.7",
4
4
  "description": "Terminal coding agent over chat.deepseek.com via Playwright",
5
5
  "type": "module",
6
6
  "bin": {