Guides/Updated 2026-10-21
Paste stack trace AI
Paste stack trace AI works when the error block is the first thing the model sees. Put the full trace above the code, ask for a root cause and a minimal diff, and ignore replies that rewrite the whole file.
- 1. Paste the full trace first. Include every frame, file path, and the exact error line. A truncated trace hides the frame that is actually yours.
- 2. Add only the failing snippet. 20 to 60 lines around the frame in your code. Do not paste the whole package.
- 3. State one reproduction fact. Example: the list renders before the fetch resolves, or the test passes a null user.
- 4. Demand a minimal diff. Ask for at most three root-cause bullets and a unified diff. Forbid a full-file rewrite.
Why the order of the paste matters
Models anchor on the first failure signal. If you paste a 400-line component and then a one-line error, the reply often invents a different bug. Paste stack trace AI in the useful sense means: error text, then frames, then the small slice of code those frames point at.
On spacebunny.me the playground demo “Paste error → patch” already uses that order. Replace the sample trace with yours, read the credit estimate, then send. The assistant runs MiniMax M3.1 Flash, the model behind Space Bunny, through our backend — the API key never reaches the browser.
What to include, and what to leave out
Include the exception type, the message, and every frame that names your source. Leave out node_modules frames only if the remaining trace still shows your file. Add the function that called the crashing line, not the rest of the module.
- Full error message, exact text, including the property name in a TypeError.
- Stack frames with file paths and line numbers.
- The 20–60 lines those frames point at.
- One sentence: what you expected versus what happened.
- Skip lockfiles, entire folders, and secrets. Never paste API keys or tokens.
A reply you can actually ship
A usable answer names the frame in your code, explains the data that was missing, and changes one or two lines. Optional chaining on the crash site is not a root cause if the parent rendered too early — the patch should guard the render or default the list.
If the first reply misses, do not paste more files. Reply with the symptom that remains, for example: “still throws on first paint — only change the map line.”
How many credits a stack trace uses
1 credit equals 100 tokens of input plus output. A typical stack plus a short snippet is a few dozen credits, not hundreds. The composer shows the estimate before send and blocks the request when the balance is short, with a link to buy credits. Free signup credits are enough to run this loop once.
Questions
Can I paste a stack trace into AI and get a patch?
Yes. Paste the full trace first, then the failing snippet, and ask for a root cause plus a minimal diff. On spacebunny.me, use Paste error → patch in the playground.
Should I paste the whole file?
No. Extra files raise the credit cost and pull the model toward unrelated refactors. Keep the snippet to the frames in the trace.
Which model reads the trace?
MiniMax M3.1 Flash, the model behind Space Bunny. This site is an independent playground, not an official MiniMax page.