AI & Agent Dev Bug Sandbox logo
AI & Agent Dev Bug Sandbox
Back to Radar

Large JSONB Values Truncated In Table Editor And Export

Supabase Studio Table Editor truncates JSONB values over ~18,000 characters, preventing editing and causing incomplete CSV/JSON/SQL exports. The Load button fails to retrieve the full value.

highConfidence 75%React/Next.jsHydrationServer Actions

Origin Analysis

The Table Editor's cell preview and row export pipeline uses a hard-coded character limit (18,000) when serializing JSONB values. The Load button fetches the full cell but the response is passed through the same truncation function before being stored, so the editor never receives the complete JSON. Regression likely introduced by a performance optimization that truncated long values in the grid.
1. Create a table with a jsonb column. 2. Insert a JSON value larger than ~18,000 characters. 3. Open the row in Table Editor; click Load on JSONB cell. 4. Observe JSON remains truncated/not loaded. 5. Export the row to CSV/JSON/SQL; compare output length to original.

Fixing Code Block

Edge Case Audit

This hotfix removes truncation entirely for JSONB exports and full editor display, which may increase memory usage for extremely large JSON values (e.g., >10MB). If performance degrades, consider keeping a preview limit but ensure export and load paths bypass it. Rollback by reintroducing the truncation constant and applying it only to grid previews, not to export or loaded content.

Ecosystem Topology

Agent Frameworks

LangChain, LlamaIndex, and Pydantic

  1. highProperty graph relation keys collide when entity IDs or labels contain underscores
  2. highCodeActAgent drops assistant tool-call metadata during handoff, leaving an orphan tool response
  3. high[Bug]: HierarchicalNodeParser async methods return the documents unsplit
  4. highLLM.predict_and_call fails with ValidationError for non-function-calling models when react_chat_formatter is omitted
  5. highAnthropic streaming server-tool input_json_delta overwrites completed client tool_use arguments due to stale cur_tool_call state