-
Notifications
You must be signed in to change notification settings - Fork 3
fix: migrate to pi-sidecar and improve AI cherry-pick conflict resolution #1127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3230d48
fix: migrate to pi-sidecar and improve AI cherry-pick conflict resolu…
myakove 4b6d9ea
fix: address Qodo review findings for pi-sidecar migration
myakove a14c93d
fix: update AI verification instruction to use read-only tools
myakove 3296133
feat: add HTTP-backed custom git tools for AI sessions
myakove 657af2d
fix: address Qodo review findings for custom git tools
myakove a5d648f
fix: address remaining Qodo findings
myakove 9d57086
chore: trigger Qodo re-evaluation of resolved findings
myakove 1eefb4e
refactor: move git-tools to standalone aiohttp server on port 5001
myakove d6a10a7
refactor: generic tool server with registry pattern
myakove 2576d22
fix: strengthen cherry-pick AI prompt to prefer incoming changes
myakove dca566e
fix: address Qodo findings for tool server
myakove 603ee07
fix: simplify cherry-pick AI prompt — let the AI be the expert
myakove 10eb56b
fix: harden tool server
myakove File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -164,3 +164,5 @@ find_unused_code.py | |
| .claude-flow/ | ||
| .swarm/ | ||
| CRUSH.md | ||
| sidecar-helper/node_modules/ | ||
| sidecar-helper/dist/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| # Start Pi SDK sidecar in background with lifecycle coupling | ||
| if [ -f "$APP_DIR/sidecar-helper/dist/server.js" ]; then | ||
| export SIDECAR_PORT="${SIDECAR_PORT:-9100}" | ||
| export SIDECAR_ACPX_EXTENSION_PATH="$APP_DIR/sidecar-helper/node_modules/@myk-org/pi-sidecar/node_modules/pi-orchestrator-config/extensions/acpx-provider/index.ts" | ||
| node "$APP_DIR/sidecar-helper/dist/server.js" & | ||
|
myakove marked this conversation as resolved.
|
||
| SIDECAR_PID=$! | ||
| echo "[sidecar] Started Pi SDK sidecar (PID $SIDECAR_PID) on port $SIDECAR_PORT" | ||
|
|
||
| # Kill sidecar when main process exits | ||
| trap 'kill $SIDECAR_PID 2>/dev/null; wait $SIDECAR_PID 2>/dev/null' EXIT | ||
|
|
||
| # Monitor sidecar — if it dies, kill the main process too | ||
| # TERM trap prevents misleading "died" message on normal shutdown | ||
| (trap 'exit 0' TERM; while kill -0 $SIDECAR_PID 2>/dev/null; do sleep 5; done; echo "[sidecar] Sidecar died, shutting down container"; kill 1 2>/dev/null) & | ||
|
|
||
| # Wait for sidecar to be ready (up to 15s) | ||
| for i in $(seq 1 30); do | ||
| if curl -sf http://127.0.0.1:$SIDECAR_PORT/health > /dev/null 2>&1; then | ||
| echo "[sidecar] Health check passed" | ||
| break | ||
| fi | ||
| sleep 0.5 | ||
| done | ||
|
|
||
| if ! curl -sf http://127.0.0.1:$SIDECAR_PORT/health > /dev/null 2>&1; then | ||
| echo "[sidecar] ERROR: sidecar failed to become healthy within 15s — AI features will not work" >&2 | ||
| fi | ||
| else | ||
| echo "[sidecar] WARNING: sidecar-helper/dist/server.js not found, AI features will not be available" | ||
| fi | ||
|
myakove marked this conversation as resolved.
|
||
|
|
||
| # Execute the main application | ||
| exec uv run entrypoint.py | ||
|
myakove marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.