@oh-my-pi/pi-coding-agent 13.5.5 → 13.5.6

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [13.5.6] - 2026-03-01
6
+ ### Changed
7
+
8
+ - Updated OAuth client name from 'oh-my-pi MCP' to 'Codex' for dynamic client registration
9
+ ### Fixed
10
+
11
+ - Fixed exit_plan_mode handler to abort active agent turn before opening plan approval selector, ensuring proper session cleanup
12
+
5
13
  ## [13.5.5] - 2026-03-01
6
14
 
7
15
  ### Added
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-coding-agent",
4
- "version": "13.5.5",
4
+ "version": "13.5.6",
5
5
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
6
6
  "homepage": "https://github.com/can1357/oh-my-pi",
7
7
  "author": "Can Boluk",
@@ -41,12 +41,12 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@mozilla/readability": "^0.6",
44
- "@oh-my-pi/omp-stats": "13.5.5",
45
- "@oh-my-pi/pi-agent-core": "13.5.5",
46
- "@oh-my-pi/pi-ai": "13.5.5",
47
- "@oh-my-pi/pi-natives": "13.5.5",
48
- "@oh-my-pi/pi-tui": "13.5.5",
49
- "@oh-my-pi/pi-utils": "13.5.5",
44
+ "@oh-my-pi/omp-stats": "13.5.6",
45
+ "@oh-my-pi/pi-agent-core": "13.5.6",
46
+ "@oh-my-pi/pi-ai": "13.5.6",
47
+ "@oh-my-pi/pi-natives": "13.5.6",
48
+ "@oh-my-pi/pi-tui": "13.5.6",
49
+ "@oh-my-pi/pi-utils": "13.5.6",
50
50
  "@sinclair/typebox": "^0.34",
51
51
  "@xterm/headless": "^6.0",
52
52
  "ajv": "^8.18",
@@ -181,7 +181,7 @@ export class MCPOAuthFlow extends OAuthCallbackFlow {
181
181
  Accept: "application/json",
182
182
  },
183
183
  body: JSON.stringify({
184
- client_name: "oh-my-pi MCP",
184
+ client_name: "Codex",
185
185
  redirect_uris: [redirectUri],
186
186
  grant_types: ["authorization_code", "refresh_token"],
187
187
  response_types: ["code"],
@@ -724,6 +724,12 @@ export class InteractiveMode implements InteractiveModeContext {
724
724
  return;
725
725
  }
726
726
 
727
+ // Abort the agent to prevent it from continuing (e.g., calling exit_plan_mode
728
+ // again) while the popup is showing. The event listener fires asynchronously
729
+ // (agent's #emit is fire-and-forget), so without this the model sees "Plan
730
+ // ready for approval." and immediately calls exit_plan_mode in a loop.
731
+ await this.session.abort();
732
+
727
733
  const planFilePath = details.planFilePath || this.planModePlanFilePath || (await this.#getPlanFilePath());
728
734
  this.planModePlanFilePath = planFilePath;
729
735
  const planContent = await this.#readPlanFile(planFilePath);