Zayne Rea Sprague Claude Opus 4.6 commited on
Commit
20b1a79
·
1 Parent(s): 6b7050a

fix: move Raw Prompt dropdown inside model action bubble

Browse files

Previously sat between the model bubble and the next ENV bubble,
making it unclear which turn it belonged to. Now lives inside the
model's action bubble, above the Thinking section.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

frontend/src/arena/components/TranscriptPanel.tsx CHANGED
@@ -199,6 +199,22 @@ function TurnBubble({ turn, turnIndex, allTurns, systemPrompt, hasMultiplePlayer
199
  </div>
200
 
201
  <div className={`border rounded-lg rounded-tr-none px-3 py-2 ${playerColor.bubble}`}>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
  {/* Think section — collapsible */}
203
  {turn.think_text && (
204
  <div className="mb-2">
@@ -226,22 +242,6 @@ function TurnBubble({ turn, turnIndex, allTurns, systemPrompt, hasMultiplePlayer
226
  </div>
227
  </div>
228
  </div>
229
-
230
- {/* Raw Prompt — collapsible, shows full messages sent to API */}
231
- <div className="mt-1">
232
- <button
233
- onClick={() => setRawPromptExpanded(!rawPromptExpanded)}
234
- className="flex items-center gap-1 text-[10px] text-gray-600 hover:text-gray-400 transition-colors"
235
- >
236
- <span>{rawPromptExpanded ? "\u25BC" : "\u25B6"}</span>
237
- <span>Raw Prompt ({turnIndex * 2 + 1 + (systemPrompt ? 1 : 0)} messages)</span>
238
- </button>
239
- {rawPromptExpanded && (
240
- <pre className="mt-1 text-[10px] leading-relaxed whitespace-pre-wrap font-mono bg-gray-950 border border-gray-800 rounded px-2 py-1.5 text-gray-400 max-h-80 overflow-y-auto">
241
- {JSON.stringify(buildRawPrompt(turnIndex, allTurns, systemPrompt), null, 2)}
242
- </pre>
243
- )}
244
- </div>
245
  </div>
246
  );
247
  }
 
199
  </div>
200
 
201
  <div className={`border rounded-lg rounded-tr-none px-3 py-2 ${playerColor.bubble}`}>
202
+ {/* Raw Prompt — collapsible, shows full messages sent to API */}
203
+ <div className="mb-2">
204
+ <button
205
+ onClick={() => setRawPromptExpanded(!rawPromptExpanded)}
206
+ className="flex items-center gap-1 text-[10px] text-gray-500 hover:text-gray-400 transition-colors mb-1"
207
+ >
208
+ <span>{rawPromptExpanded ? "\u25BC" : "\u25B6"}</span>
209
+ <span>Raw Prompt ({turnIndex * 2 + 1 + (systemPrompt ? 1 : 0)} messages)</span>
210
+ </button>
211
+ {rawPromptExpanded && (
212
+ <pre className="text-[10px] leading-relaxed whitespace-pre-wrap font-mono bg-gray-950/80 border border-gray-800 rounded px-2 py-1.5 text-gray-400 max-h-80 overflow-y-auto">
213
+ {JSON.stringify(buildRawPrompt(turnIndex, allTurns, systemPrompt), null, 2)}
214
+ </pre>
215
+ )}
216
+ </div>
217
+
218
  {/* Think section — collapsible */}
219
  {turn.think_text && (
220
  <div className="mb-2">
 
242
  </div>
243
  </div>
244
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  </div>
246
  );
247
  }