@agfpd/iapeer 0.2.90 → 0.2.91
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/package.json +1 -1
- package/src/shadow/render.ts +8 -1
package/package.json
CHANGED
package/src/shadow/render.ts
CHANGED
|
@@ -60,7 +60,14 @@ export function composerOccupancyFromModel(term: Terminal, cols: number, rows: n
|
|
|
60
60
|
const l = b.getLine(py)!
|
|
61
61
|
for (let x = px + 1; x < cols; x++) {
|
|
62
62
|
const c = l.getCell(x); if ((c?.getChars() || ' ').trim() === '') continue
|
|
63
|
-
|
|
63
|
+
// OCCUPIED iff a real human glyph after the prompt: DEFAULT foreground AND non-dim. Verified on BOTH
|
|
64
|
+
// runtimes — typed input renders at the terminal default fg (isFgDefault, fg=-1) and non-dim. Everything
|
|
65
|
+
// else after the prompt is runtime chrome / ghost and must be ignored: claude's dim/palette-246
|
|
66
|
+
// placeholder; codex's DIM default-fg suggestion ("Find and fix a bug in @filename", varies) AND its
|
|
67
|
+
// TRUECOLOR status hint ("<model> <effort> · <cwd>"). The old check (`!dim && !palette-246`) ghosted the
|
|
68
|
+
// dim suggestion but MISSED codex's truecolor status (non-dim, non-palette) → false OCCUPIED → spurious
|
|
69
|
+
// delivery queue ("queuedBy: composer") whenever a human was attached to a codex session.
|
|
70
|
+
if (!c!.isDim() && c!.isFgDefault()) return true
|
|
64
71
|
}
|
|
65
72
|
return false
|
|
66
73
|
}
|