Repository navigation
Description
What happens
Opening a fork shows a file-load error in a chart inherited from a completed reply. The chart’s JSON still exists in the source thread, where the same block passed check_ui.
Environment — BB desktop 0.50.1 on macOS (arm64), Codex provider, Generative UI 0.3.2.
Reproduce
-
In a new BB thread with Generative UI enabled, ask the agent to create a two-value data file with this command.
printf '%s\n' '[2,5]' > "$BB_THREAD_STORAGE/counts.json"
-
Ask the agent to pass the following line as the
spectocheck_ui, then send it in a fenceduiblock in its reply. Keep the literal$BB_THREAD_STORAGEprefix in the block.Chart("bar", ["A", "B"], {Count: Load("$BB_THREAD_STORAGE/counts.json")}) -
After the reply finishes, fork the thread from that reply. Open the fork and scroll to the inherited chart before creating any files in the fork.
Expected — The inherited chart still displays A = 2 and B = 5 while the source data is available.
Actual — The inherited chart displays a file-load error. In the observed fork, check_ui reported file not found for the storage-prefixed path. Passing the source file’s absolute path hit the allowed-roots check. Copying the same bytes to the same relative location in the fork made the unchanged block pass check_ui. Visual recovery after copying was not verified.
Diagnostic evidence
- Fork history. BB copies the selected events with the fork as their thread ID. The assistant row passes its thread ID to the code-fence renderer. The SDK message carries a single thread ID, with no separate field identifying where the reply was authored. Fork history copy · Assistant row · Fence message · SDK message fields
- Historical rendering. Generative UI’s
SlotFencepassesmessage.threadIdtoFence. ItsUiFenceloads data for that thread, and the hook calls theload_dataRPC on a cache miss. The RPC passes the supplied ID toloadThreadFile. SlotFence · UiFence · RPC selection · Cache lookup and load · RPC handler - Validation.
check_uicallsloadThreadFiledirectly with the invoking tool’sctx.threadId. Both paths therefore resolve the literal prefix against the fork’s own storage root in this case. A fresh call tocheck_uiin the fork tests that root independently of the historical renderer. Tool handler · Root selection and absolute-path check · BB storage path
The two-value example passed the released plugin’s validator with an in-memory SDK file fixture. The visual failure was observed in an existing fork. The renderer’s RPC arguments during that incident were not captured.
Activity