xai-org/grok-build · error

spawn_blocking panicked: {e}

Error message

spawn_blocking panicked: {e}

What it means

Error "spawn_blocking panicked: {e}" thrown in xai-org/grok-build.

Source

Thrown at crates/codegen/xai-grok-shell/src/session/acp_session_impl/rewind.rs:361

            // survives; `None` keeps the existing marker (standard truncation).
            let mut replay_compaction_marker: Option<Option<usize>> = None;

            if needs_replay {
                // Cross-compaction rewind: reconstruct conversation from updates.jsonl.
                // Run on the blocking pool since replay does synchronous file I/O
                // (reading checkpoint files + scanning updates.jsonl).
                let replay_updates = updates_path.clone();
                let replay_session_dir = session_dir.clone();
                let replay_target = target_index;
                let replay_result = tokio::task::spawn_blocking(move || {
                    crate::session::helpers::replay::replay_to_prompt(
                        &replay_updates,
                        &replay_session_dir,
                        replay_target,
                    )
                })
                .await
                .map_err(|e| anyhow::anyhow!("spawn_blocking panicked: {e}"))?;
                match replay_result {
                    Ok(replay_result) => {
                        tracing::info!(
                            target_index,
                            prompt_index_reached = replay_result.prompt_index_reached,
                            conversation_len = replay_result.conversation.len(),
                            "Cross-compaction rewind: conversation reconstructed via replay"
                        );
                        // The rebuilt conversation drops the summary unless a
                        // checkpoint survived; carry the recomputed marker to
                        // the snapshot restore so the stale value isn't reused.
                        replay_compaction_marker = Some(replay_result.last_compaction_prompt_index);
                        // The replay result may or may not include the session
                        // preamble (System + User(user_info)):
                        // - Checkpoint loaded (target >= compaction_at): the
                        //   checkpoint's compacted_history already has System +
                        //   User prefix. Use directly.
                        // - Raw updates (target < compaction_at): replay only

View on GitHub (pinned to bc7f02eddd)

When it happens

Trigger: Thrown at crates/codegen/xai-grok-shell/src/session/acp_session_impl/rewind.rs:361 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of xai-org/grok-build@bc7f02eddd (2026-08-31). Data as JSON: /api/errors/ea852eb5b56477eb. Report an issue: GitHub.