feat(port): ported pi-mono improvements + worker & patch improvements

- added Azure OpenAI Responses support and OpenRouter routing compat
- improved patch applicator diagnostics and subagent context propagation
- updated editor cursor handling, keybindings, and working message API
- refreshed porting sync metadata
This commit is contained in:
can1357
2026-01-25 13:47:12 +01:00
parent 3e2c731aa0
commit 7bb2e1aa58
44 changed files with 1656 additions and 176 deletions
@@ -328,6 +328,11 @@ function parseOneHunk(lines: string[], lineNumber: number, allowMissingContext:
for (let i = startIndex; i < lines.length; i++) {
const line = lines[i];
const trimmed = line.trim();
const nextLine = lines[i + 1];
if (line === "" && parsedLines > 0 && nextLine?.trimStart().startsWith("@@")) {
break;
}
if (!isDiffContentLine(line) && line.trimEnd() === EOF_MARKER && line.startsWith(EOF_MARKER)) {
if (parsedLines === 0) {