@youdie006/prodex 0.16.10 → 0.16.11

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.
@@ -1178,12 +1178,20 @@ export async function sendChatGptPrompt(options) {
1178
1178
  assertChatGptPageAvailable();
1179
1179
  }
1180
1180
  const page = pageResult.page;
1181
- if (options.newChat) {
1181
+ if (options.newChat && !options.project && !options.projectNew) {
1182
1182
  // Long accumulated threads eventually break acceptance detection, so
1183
1183
  // start from a clean chat. Wait for the tab to actually reach the fresh
1184
1184
  // empty chat (root URL, zero messages) rather than a fixed sleep: a slow
1185
1185
  // SPA navigation could otherwise leave the old thread rendered, poisoning
1186
1186
  // the answer-count baseline captured below and causing a false timeout.
1187
+ //
1188
+ // Skipped when a project is requested: the project home the selection step
1189
+ // navigates to IS the fresh composer for "a new chat in this project".
1190
+ // Navigating to the root new chat first leaves the SPA composer bound to
1191
+ // the ROOT conversation target even after entering the project, so the
1192
+ // thread silently lands outside the project (measured live: --new-chat
1193
+ // --project threads appeared in the root chat list, --project-only
1194
+ // threads appeared inside the project).
1187
1195
  await evaluateOnPage(page, `location.assign("https://chatgpt.com/")`);
1188
1196
  await waitForFreshChatGptPage(page, 8_000);
1189
1197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youdie006/prodex",
3
- "version": "0.16.10",
3
+ "version": "0.16.11",
4
4
  "description": "Local receipt bus for coordinating Codex execution with ChatGPT Pro/Projects consultation.",
5
5
  "author": "youdie006",
6
6
  "license": "MIT",