Skip to content

Pi confirms over 8,192 characters silently return false without a learner response #7647

Open

Description

@mlegls

Follow-up to closed #4264: the remaining message-length limit reproduces the same validation-as-user-cancellation path on bb 0.49.0 / Pi 1.5.2. The title fix is present; a confirm message of 8,193 characters still disappears.

Versions and environment

  • bb 0.49.0, daemon-managed installation under app-versions/0.49.0.
  • Linux 7.0.0-42-generic, Node 24.22.3, Pi 1.5.2 running on Bun 1.4.4.
  • Local unmanaged scratch Profile, bb's Pi provider, offline scripted tutor. No network model calls.
  • Investigation: local bb thread thr_qhyf63n2qm, Concept base ca448f31f3290c234d9a5c06fc43dcf78842fd60.

Steps to reproduce

  1. In a trusted Pi project, add this project extension to .pi/extensions/confirm-probe.ts:
import { Type } from "typebox";
export default function (pi) {
  pi.registerTool({
    name: "confirm_probe",
    label: "Confirm probe",
    description: "Probe a confirmation message length.",
    parameters: Type.Object({ size: Type.Integer() }),
    async execute(_id, params, _signal, _update, ctx) {
      const accepted = await ctx.ui.confirm("Bridge limit probe", "x".repeat(params.size));
      return {
        content: [{ type: "text", text: JSON.stringify({ size: params.size, accepted }) }],
        details: {},
      };
    },
  });
}
  1. Start a bb Pi thread in that project. Invoke confirm_probe with {"size":8193}. My reproduction invoked this tool through an offline scripted provider, then echoed its actual result.
  2. Inspect bb thread interactions list <thread-id> --json: []; tool result is {"size":8193,"accepted":false}, without any user response.
  3. In a fresh thread invoke it with {"size":8192}. The pending interaction exists, and its payload.data.message.length is exactly 8192. bb thread interactions respond <interaction-id> <thread-id> --value true completes with {"size":8192,"accepted":true}.

Expected vs actual

8,193 characters: actual scripted tutor response:

Proposal result: [{"type":"text","text":"Script completed\nWall time 0.1 seconds\nOutput:\n"},{"type":"text","text":"{\"size\":8193,\"accepted\":false}"}]

The complete turn took 225 ms by bb's timeline. No interaction was created. Control at 8,192 characters created interaction pint_5cukqghuv6 and accepted its true response.

Expected: retain the full confirmation detail for review, or expose a bridge validation error. A message-length validation failure cannot say what the user decided.

Evidence and diagnosis

  • Reproduced 8,193-character case: thr_bidrtxreup.
  • Successful 8,192-character control: thr_ic2rumbanp, same scratch Profile and provider.
  • Source inspected at main 2fef0456de9bd1ea25205c7bc9ca5e42859b2c26: message bounded at 8192 and schema failure responds cancelled.
  • Pi's RPC UI returns false for both { cancelled: true } and { confirmed: false }; an extension using ctx.ui.confirm cannot distinguish those outcomes.
  • Real trigger: an ncept-pi graph proposal has tens of thousands of characters of before/after JSON. Its current workaround writes that detail to a Profile file and presents the path under bb. I separately accepted one real oversized graph proposal through that workaround, then dismissed another; dismissal produced {"status":"refused"} before the ncept-side wording fix.

What was ruled out

AGENT GENERATED

Activity

  1. added theissue type on Nov 16, 2026
  2. added
    providers
    provider-pi
    confirmed-repro
    on Nov 16, 2026
  3. bb-slop-cop commented on Nov 16, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Medium · providers, provider-pi.
    • Report: Reproduction and root-cause report.
    • Verdict: REPRODUCED · root-cause confidence: high · reproduction label: confirmed-repro.
    • Root cause: The shared Pi UI schema rejects messages above 8,192 code units. The bridge returns {cancelled:true} before creating an interaction; Pi maps cancellation to false.
    • Verification: Newly authored bridge regression repeated in two clean checkouts of trusted main 2fef0456de9b: 8,192 passes; 8,193 and 32,768 cancel before user input. All 14 relevant existing tests pass. The final Pi boolean mapping was source-inspected, not exercised in a model session.
    • No PR: Preserving full details changes the shared schema; distinguishing validation failure requires an error-contract decision. These exceed the simple-fix safety gate.
  4. added a commit that references this issue on Nov 17, 2026
    7aa93f0
  5. added a commit that references this issue on Nov 24, 2026
    b308be9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reproprovider-piproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions