Skip to content

Console 0.5.14 candidate: keep every draft intent within budget without losing the user's words (APT-1266) - #43

Open
reoring wants to merge 1 commit into
mainfrom
fix/apt-1266-intent-followups
Open

reoring wants to merge 1 commit into
mainfrom
fix/apt-1266-intent-followups

Conversation

@reoring

@reoring reoring commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

What (Console 0.5.14 candidate, APT-1266 — follow-ups to 0.5.13 / #42)

Keeps every intent the Console writes within the 4,000-byte budget without silently losing the user's words.

  • M1 (model/build/questions.ts, features/build/use-build-session.ts): the newest reply is shortened before the opening; a clipped opening is restored when the tab's original matches its digest. The complete reply still goes to the turn.
  • M2 (features/create/steps/start-step.tsx, features/create/form.ts, features/create/new-app-page.tsx, features/build/entry.ts): the creation form counts UTF-8 bytes, shows remaining/over, and blocks an oversized opening (button, URL-seeded start and retry) instead of truncating it.
  • M3 (features/improve/entry.tsx, features/build/build-failure-notice.tsx): improvement drafts and build-failure repairs stay editable with inline feedback instead of sending an intent Platform rejects.
  • L4 (model/build/failure.ts, copy.ts, copy.en.ts): a turn/plan intent rejection says the request was not accepted and points to the reference (no retry promise).

The budget stays 4,000 UTF-8 bytes (Craftsman's Platform counts bytes; raising it is APT-1265 after platform #7061 is delivered).

Local verification

bun run typecheck, bun run typecheck:e2e, bun test src (2129 pass / 0 fail), bun run check:response-boundaries (0 violations), bun run check:console-schema — all exit 0.

Review

Writer: GPT-6.2 Astra (deep-worker). Independent review: Claude Opus 5.5 (probe-opus) — merge OK with follow-ups. Property check over 3,000 random histories (ASCII/Japanese/emoji, openings 0–9,000 bytes): 0 over-budget, 0 non-deterministic, 0 non-idempotent, 0 resume mismatches; 4,282 clipped openings restored. Follow-ups (low): L-1 a tab with and without the original can compose different plan intents near the limit (no loop); L-2 the newest reply can become only … when the opening is ~3,975–3,980 bytes; L-3 a 0.5.13 draft created from an over-budget text cannot be resumed from the creation form (draft list works). Info: the turn composer still caps at 4,000 characters (not an intent).

… (APT-1266)

- Shorten the newest reply before the opening; restore a clipped opening when the tab's original matches its digest.
- Creation form, URL-seeded starts and retries count UTF-8 bytes and block oversized openings with inline feedback.
- Improvement drafts and build-failure repairs stay editable instead of sending an intent Platform rejects.
- A turn/plan intent rejection says the request was not accepted and points to the reference.
@reoring reoring added the needs-human-review Waits for a person's review before merge label Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-human-review Waits for a person's review before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant