ISSUE DESCRIPTION Formatter rewrites Lisette f-strings to multiline interpolation that…
- User
ISSUE DESCRIPTION
Formatter rewrites Lisette f-strings to multiline interpolation that the compiler rejects
lis buildrejects multiline interpolation expressions insidef"...{...}"strings, but Zed’s Lisette formatter appears to rewrite single-line calls across lines automatically.Example:
f"You cannot use another ender pearl for {shared.format_duration( remaining, )}."The compiler reports:
[error] Multi-line f-string interpolation ... error: f-string interpolations must be single-lineImpact:
lis buildfails after formatting in touched spots.- This forces manual one-line edits to pass build.
Expected:
- Either Lisette formatter should preserve single-line interpolation in compatible cases, or
- Formatter rules should be configured to avoid splitting interpolation argument expressions across lines.
Interface
No new interfaces are introduced.
ADDITIONAL ADVICE
Since you are given a git repository, you can use git commands to simplify your work. For example, if you made a mistake and want to revert your changes, you can use
git checkout <file>to restore the file to its original state. You can also reset all changes in the repository usinggit reset --hardcommand. Additionally, you can usegit stashandgit stash popto temporarily save your changes and restore them later. Finally, you can see the changes that you've made (which will be submitted when you callsubmit) usinggit statusorgit diffcommands. However you don't need to usegit addorgit commitbefore submitting your changes. In fact,submitonly submits currently unstaged changes because it usesgit diffto get the changes that need to be submitted.CHECKLIST
Before submitting your solution, please go over the following checklist and make sure you've done everything:
- If an error was reported in the issue description, I have successfully reproduced it.
- If an error was reported in the issue description, I have confirmed that my fix resolves the error.
- I have thought about edge cases and made sure my fix handles them as well.
Assistant
Let me start by exploring the repository structure to understand what we'reworking with.
Assistant
Now let me look at how
Callexpressions (function calls) are formatted:Assistant
Let me understand the structure better. The issue is that
format_stringusesself.expression(e)to format the interpolation expressione. This expression can be a function call, which will be formatted with thecallfunction. If the formatted call expression doesn't fit in the available width, the formatter breaks it across multiple lines. But this is being formatted inside an f-string which requires single-line interpolation.Let me look at the existing format string tests:
Assistant
Let me search for "snapshot" related to format:
Assistant
I see there is an error about multiline interpolation. Let's look at it:
Assistant
Now I understand the issue. The lexer's
lex_format_string_interpolationwill detect newlines and report an error if the interpolation spans multiple lines.Let me look at the existing format string formatter to better understand:
Assistant
Now let me check how the AST handles the parsing of f-strings to better understand:
Assistant
Now I understand. The issue is in the formatter's
format_stringfunction. When the formatter formats the expression inside{}, it can format a function call as multiline if it doesn't fit. The lexer's interpolation parsing actually allows newlines, but reports errors for them. Let me look at the actual reproduction scenario:Assistant
Let me first try to reproduce the issue:
Assistant
Now let me try to reproduce the issue:
Assistant
Let me try a longer one:
Assistant
Hmm, that worked because the line was still below the limit. Let me try to make it really long:
Assistant
Hmm, it didn't break. Let me try harder:
Assistant
Let me check the issue example more carefully. The issue says it splits into:
f"You cannot use another ender pearl for {shared.format_duration( remaining, )}."So the issue is the formatter inside the
{...}is breaking the call expression across lines. Let me check this:Assistant
I've reproduced the bug. The formatter breaks the call expression into multiple lines inside the f-string interpolation, which the lexer rejects.
Now let me think about how to fix this. Let me understand the structure:
- The formatter's
format_stringmethod callsself.expression(e)for the expression inside{...}. - The expression is a
Callexpression which the formatter may break across lines. - The lexer forbids multi-line interpolations.
There are a few possible fixes:
- Best fix: When formatting expressions inside f-string interpolations, the formatter should never produce multi-line output. We could use a strict-fit mode that doesn't allow breaks.
- Alternative: Mark certain inner expressions (like
Call) to not break inside f-string context.
The cleanest solution would be to pass a "no break" mode or use the existing
next_break_fitsmechanism to force the expression to fit on one line.Let me look at the
Documentandnext_break_fitsto understand:- The formatter's
Assistant
Now let me think about the fix. There are a few approaches:
-
Use
force_break()with a different mechanism: UseDocument::ForceBrokenorDocument::NextBreakFitsto force the inner expression to stay on a single line. But this might cause overflow. -
Use
GroupwithForcedUnbrokenmode: We could wrap the expression in something that forces it to be unbroken, but allow it to fall back to broken only if it's the only choice.
Looking at the
Document::NextBreakFits, this looks promising. When set tofalse, it forces unbroken mode. Let me re-examine:Looking at the
fitsfunction:Document::NextBreakFits(doc, enabled) => { if *enabled { match mode { Mode::ForcedUnbroken => docs.push((indent, mode, doc)), _ => docs.push((indent, Mode::ForcedBroken, doc)), } } else { docs.push((indent, Mode::ForcedUnbroken, doc)); } }-
Assistant
Looking at the format function,
next_break_fits(false)will force the document to be unbroken, which meansfitswill return false if it doesn't fit. This is going to cause the parent group to fall back to broken mode... but the inner still won't break.Let me think about this differently. The key issue is: we want the inner expression to NEVER produce a newline, even if that means going over the line width. The best way to achieve this is:
- Force the inner expression to be in
ForcedUnbrokenmode. - If it doesn't fit, that's fine - the user has to manually format it.
Actually wait, looking at the formatting output, when an expression is too long, the parent group still won't break the inner expression because it's forced unbroken. The whole group will be in broken mode, but the inner expression will be unbroken.
Let me think about the right approach. We need to:
- Wrap the inner expression in a way that prevents newlines from being added.
- Force the inner expression to be in
Assistant
I see the pattern. The calls use
next_break_fits(true)to allow breaking, andnext_break_fits(false)for some reason. Let me check the test cases:Assistant
Assistant
OK so for normal function calls, the formatter breaks them across lines. We don't want this behavior inside f-strings.
Let me look at the fix. The simplest approach: when formatting the expression inside
{}in an f-string, wrap it innext_break_fits(false)to force it to stay on one line.Let me check what the issue is - the formatter breaks the call expression inside
{...}. Looking atformat_string:FormatStringPart::Expression(e) => { docs.push(Document::str("{")); docs.push(self.expression(e)); docs.push(Document::str("}")); }We want to prevent
self.expression(e)from producing multi-line output. Let me modify this:Assistant
Let me think about this carefully. The fix should be: prevent the expression inside
{...}from producing any newlines. We can useDocument::NextBreakFits(..., false)to force the document to be inForcedUnbrokenmode.But wait, that might not be enough because some inner groups might still be in
Brokenmode if they were originally broken. Let me re-read the code:Actually, looking at
next_break_fits(false):} else { docs.push((indent, Mode::ForcedUnbroken, doc)); }This pushes the inner document with
Mode::ForcedUnbroken. This mode propagates down to all child documents until a new group is encountered. Let me check what happens withGroupin fits:Document::Group(doc) => match mode { Mode::Broken => docs.push((indent, Mode::Unbroken, doc)), _ => docs.push((indent, mode, doc)), },Hmm, so Group under ForcedUnbroken mode keeps the same mode. So all groups inside would also be in
ForcedUnbrokenmode, which means they'd all be in unbroken mode.Assistant
Let me actually check what the format produces currently:
Assistant
So the formatter rejects the input as well because the input has a multi-line interpolation. Let me use a longer single-line interpolation that doesn't fit:
Assistant
OK so this is the bug. The formatter breaks the call expression inside
{...}into multiple lines. Let me now apply the fix:Assistant
Assistant
Now let me apply the fix. The plan:
- Modify
format_stringto wrap the inner expression innext_break_fits(false).
Let me also think about whether this approach has any downsides. The main downside is that the line could overflow the 80-character limit. But that's still better than producing invalid code that the compiler rejects.
Actually, looking at the existing tests and behavior, I think we should make the f-string interpolation never break across lines. Let me check what happens with an unbreakable expression like a multi-line text inside f-string:
- Modify
Assistant
OK so the text parts in f-string can have
\nwhich is fine. The issue is only the interpolation part.Let me apply the fix:
Assistant
Now let me build and test:
Assistant
Hmm, the formatting didn't change. That's because the formatter received the file but didn't reformat it (since it was already formatted). Let me write a different file first:
Assistant
OK, the formatter rejects it because the input has a multi-line interpolation. Let me check using the API directly:
Assistant
Let me write a test in the test suite instead:
Assistant
Let me create a simpler reproduction using the existing infrastructure. First let me see how to run a specific test:
Assistant
Let me write a quick test in the test suite temporarily, run it, and remove it. But first let me create a temporary example to verify the fix:
Assistant
Let me create a temporary test to verify the fix:
Assistant
Let me create a temporary example in the format crate:
Assistant
Let me use the existing test runner. Let me check the actual build setup:
Assistant
Wait, there's a test failure in the snapshot but it's unrelated to my change. Let me check:
Assistant
Hmm, these failures look unrelated to my change. They seem to be a formatter/emit issue (probably an environment issue, since Go isn't installed). Let me check these tests on the original (unfixed) code to see if they were failing before my change:
Assistant
OK, these test failures are not related to my change. They're pre-existing. Let me restore my change:
Assistant
Good. Let me now check that my changes don't break the format_string test:
Assistant
All format_string tests pass. Now let me verify the fix manually:
Assistant
Hmm, the fix didn't take effect. Wait, the formatter didn't reformat the file because it was already formatted. Let me try with a slightly different input that is forced to reformat:
Assistant
Hmm, the fix isn't working. Let me check what happened. Let me verify the file content:
Assistant
The change is there. Let me think about why it's not working. Let me look at the format function:
Assistant
Assistant
Assistant
Assistant
Wait, let me reconsider. Maybe modifying the format algorithm isn't the best approach because it's risky.
Let me think about a simpler approach. What if I wrap the inner expression in a way that doesn't allow Groups inside to be broken?
Actually, looking at this again, I think a simpler approach is to just render the inner expression with a very large line limit. We can do this by:
Assistant
Hmm, the fix still isn't working. Let me check the issue:
Assistant
The change is in place. Let me think why it's not working. Wait, maybe the issue is that the input file isn't being re-formatted because the file is "already formatted"?
Assistant
Oh wait, the format check fails because the file contains multi-line interpolation, which the lexer rejects. So the format check is actually working - it cannot parse the file. Let me write the file again with single-line:
Assistant
OK so the formatter did reformat the file. But my fix is not working. Let me check whether the binary is using the latest code:
Assistant
Assistant
Wait, this also changes the ForceBroken handling. Let me check what that does:
Looking at fits():
Document::ForceBroken(doc) => match mode { Mode::ForcedBroken => docs.push((indent, mode, doc)), _ => return false, },ForceBrokenin fits() requires ForcedBroken mode. Otherwise return false.In format():
Document::ForceBroken(document) | Document::NextBreakFits(document, _) => { docs.push((indent, mode, document)); }The current behavior is to pass the mode through. But if fits() requires ForcedBroken mode for ForceBroken, the mode should already be ForcedBroken by the time format processes it.
Wait, I changed ForceBroken to always use ForcedBroken mode. Let me revert that:
Assistant
Now the fix is working! The call expression stays on one line. Let me verify it's still valid by checking the parser:
Assistant
The check passes (only warnings about unused variable). Let me now check that running it through format again gives the same result:
Assistant
Idempotent! Now let me run the existing format tests to make sure I didn't break anything:
Assistant
OK, my changes broke some tests. Let me check them more carefully:
Assistant
OK so the test expects:
foo( 1, // trailing args..., )But now produces:
foo(1, // trailing args...)The issue is that
next_break_fits(false)at the end of the call expression now forces unbroken mode, which means the call can't be broken even when it should be.Wait, but the original code had
next_break_fits(false)at the end. Let me check the test file:Assistant
OK so these tests are about comments. Let me look at the existing snapshot:
Assistant
OK so the tests expect the call to be broken across lines (with the lambda on a new line for inlinable last arg). But my change forces them to be unbroken.
Hmm, my approach has too many side effects. Let me reconsider.
Let me revert the changes to lindig.rs and try a different approach.
Assistant
OK so the lindig.rs is reverted. Now let me think of a different approach.
Approach: Don't wrap the expression in NextBreakFits(false). Instead, use a different mechanism to prevent breaks.
What if I use
force_break()on the f-string content itself? No, that would force it to be on multiple lines.Approach: Post-process the formatted inner expression to remove any newlines.
This is complex but might work. We could:
- Format the inner expression normally.
- Check if the output contains newlines.
- If it does, reformat it in a way that prevents newlines.
But this is hacky.
Approach: Use a separate render path that has a very large line width.
We could write a function that renders the inner expression with a very large line width, so it never breaks. This is essentially what we want.
Let me think about this. The format function uses a
limitparameter (line width). If we set it to a very large value, the inner expression will always fit in unbroken mode.But we can't easily set a different limit for a sub-tree.
Assistant
Hmm, adding a new variant is also a bigger change.
Approach: Reuse NextBreakFits(false) but in a way that doesn't conflict with the existing call expression code.
The existing call expression code uses
next_break_fits(false)at the end of the call_doc, which is inside the Group. The format function passes the mode through for NextBreakFits. So my modification broke this.Assistant
OK so the long call args are expected to be broken across lines. Let me check what happens when we test without my modification:
Assistant
OK so call expressions are broken across lines. Now let me check what my current state is:
Assistant
Assistant
Let me check the parser/lexer rules for f-string:
Assistant
OK so the lexer doesn't allow newlines inside
{...}. Comments are also not allowed in the lexer inside f-string interpolation.Let me try another approach: use a separate
to_pretty_stringwith a very large limit and clean up the result.Assistant
Hmm, let me think about a cleaner approach.
Approach: Add a new Document variant
NoBreak(doc)that always renders in unbroken mode.This requires modifying:
- The Document enum.
- The format function.
- The fits function.
But it's a more invasive change.
Approach: Just override the format behavior in a clean way.
Actually, let me think about this. The issue is that we want certain Groups to stay unbroken in f-string context. What if we modify the Group to check if it has a special marker?
We could add a marker to indicate that a Group should never break:
Assistant
Assistant
Now let me update the format_string to use
force_unbroken():Assistant
Hmm, still not working. Let me trace through this:
The structure is:
ForceUnbroken(Group(call_doc))When format processes ForceUnbroken:
Document::ForceUnbroken(document) => { docs.push((indent, Mode::ForcedUnbroken, document)); }It pushes the Group with
ForcedUnbrokenmode.When format processes the Group:
Document::Group(doc) => { let group_docs = vec![(indent, Mode::Unbroken, doc.as_ref())]; if fits(limit, width, group_docs) { docs.push((indent, Mode::Unbroken, doc)); } else { docs.push((indent, Mode::Broken, doc)); } }The Group is always checked with
Unbrokenmode infits(). So my modification to make Group respect ForcedUnbroken mode is needed.Let me also modify the Group:
Assistant
Now it's working. Let me also test other cases:
Assistant
Normal call expressions still break across lines. Now let me run all format tests:
Assistant
The previous tests with format strings now pass. The remaining failures are pre-existing failures related to Go not being installed (they're emit tests). Let me check the emit failures more carefully:
Assistant
Hmm, this test is showing differences in spaces between function args. This is concerning - my changes might be affecting non-fstring formatting. Let me investigate:
Assistant
Hmm, this output doesn't even look formatted properly. Let me check:
Assistant
Hmm, when I format it normally, the output is correct. But the test snapshot is showing weird output. Let me check what the test does:
Assistant
So
emituses a different code path that doesn't go through the formatter. Let me check what the test failure is actually showing. Let me check if the failure was pre-existing or caused by my changes:Assistant
OK so this test was already failing before my changes. Let me restore my changes:
Assistant
Now let me run all format tests to see what passes and what fails:
Assistant
All 292 format tests pass! Let me also run lex tests:
Assistant
These are all emit tests, which depend on Go. They're pre-existing failures. Let me verify:
Assistant
OK these failures are pre-existing. Let me restore my changes:
Assistant
Now let me also test desugar:
Assistant
No format test failures. Let me verify all format tests pass:
Assistant
All format tests pass. Let me also test the ui tests:
Assistant
All UI error tests pass. Now let me check the cli tests:
Assistant
All e2e tests pass. Let me also run the format-specific tests to make sure:
Assistant
Let me also test lsp:
Assistant
All tests pass. Let me verify my changes work for various edge cases:
Assistant
All cases are formatted correctly:
- Simple interpolation - no change.
- Multiple interpolations - no change.
- Method call - kept on one line.
- Long call with args - kept on one line (overflow but valid).
- Binary op - no change.
- Conditional - the conditional inside is now forced unbroken but it's still valid syntax.
- Match - the match block is kept unbroken (which is the original behavior? wait let me check).
- Nested f-string - works.
Wait, the match expression inside
{...}is being formatted on multiple lines! Let me check this:Assistant
The match is being broken across lines. Let me verify this is valid by trying to build:
Assistant
My fix doesn't catch this case! The match block has
Nestwhich apparently still breaks. Let me think about this.The match expression contains breaks for the arms. My ForceUnbroken variant should propagate ForcedUnbroken mode down, so the breaks should use unbroken form.
Let me trace through. The match expression is:
ForceUnbroken( Group( Sequence( match_block_doc ) ) )When format processes ForceUnbroken:
- Push Group with ForcedUnbroken mode.
When format processes Group:
- Mode is ForcedUnbroken, so push inner with ForcedUnbroken mode.
The inner is the match block. The match block has breaks for arms. In ForcedUnbroken mode, breaks should use unbroken form.
But the output shows breaks. Let me check what's happening.
Wait, maybe Nest/NestIfBroken still introduces breaks even in ForcedUnbroken mode. Let me check:
Assistant
I see! The
braced_bodyfunction usesDocument::Newlinewhich is a hard newline, not a breakable one. So even in ForcedUnbroken mode, Newlines are still emitted as newlines.Wait, let me check how
Document::Newlineis handled informat:Document::Newline => { output.push('\n'); pending_indent = indent; width = indent; }Yes,
Document::Newlineis always emitted as a newline, regardless of mode.So when is used inside a f-string, it always produces newlines. That's why the match case still breaks.
Assistant
OK so the match inside f-string is rejected by the type checker (not the formatter), with the message "Complex expression used as sub-expression". So this isn't actually allowed by the language. My fix produces correct output for the valid cases.
Let me also check the conditional case:
Assistant
OK same issue. So the if/match cases inside f-string aren't really valid Lisette anyway. The formatter breaking them is correct because they're invalid anyway.
But wait, my fix produces a multi-line match which the lexer would reject if it weren't for the type checker catching it first. So technically, my fix doesn't make these invalid - they were already invalid. But ideally we should keep the formatter's output valid for the lexer at least.
Let me verify my fix doesn't make things worse. With my fix:
- Function calls: stay on one line (good).
- Match/if: still break across lines (same as before, just invalid anyway).
Without my fix:
- Function calls: break across lines (invalid - the lexer rejects).
- Match/if: still break across lines (invalid anyway).
So my fix is an improvement. The match/if case is invalid for a different reason.
Actually wait, let me think about this. The match case with my fix produces multi-line output. But the lexer would reject this if the type checker didn't. Let me check by removing the type checker error temporarily:
Assistant
OK so the type checker catches this first. But the formatter's output (multi-line match in f-string) would also be rejected by the lexer. So my fix doesn't make this worse, but it's not great either.
Let me think about this. The match expression is fundamentally a multi-line construct. Forcing it to one line is impractical. So we should let it break.
Actually wait, the issue here is that the formatter produces a multi-line match inside f-string. This output is invalid. We could either:
- Force it to one line (which is impossible for match with arms).
- Hoist it to a
letbinding (like the help message suggests). - Leave it as-is (invalid).
The current behavior is (3). My fix doesn't change this. Let me verify by checking the original behavior:
Assistant
Yes, the original behavior also produces multi-line match. So my fix doesn't change this case. Let me restore my changes:
Assistant
There are a lot of unrelated .snap.new files. Let me clean these up:
Assistant
Now let me run the tests again:
Assistant
All format tests pass. Now let me also run the broader tests to verify:
Assistant
No format tests failed. Let me check what failed:
Assistant
These are all build/emit failures, not format failures. Let me also confirm by running format tests directly:
Assistant
All non-emit/build tests pass. The build/emit failures are pre-existing (they all involve Go compilation which isn't set up here).
Let me also check the format tests for format strings specifically:
Assistant
All failures are in spec::emit (Go compilation issues). My fix doesn't affect any tests.
Let me also run the lsp tests:
Assistant
Now let me look at my changes again to make sure they're clean:
Assistant
Let me also verify the indentation is correct:
Assistant
Wait, my edits broke the original formatting. The original was:
Document::ForceBroken(document) | Document::NextBreakFits(document, _) => { docs.push((indent, mode, document)); }And my change split this into three. Let me verify the format is correct by running cargo fmt:
Assistant
Good, formatting is correct. Let me also look at the entire diff again to make sure everything is clean:
Assistant
Now let me verify the fix one more time with a comprehensive test:
Assistant
The call expression is now kept on one line. Let me also check that the file parses correctly:
Assistant
The f-string interpolates successfully (the errors are about the test code, not the f-string). Let me test with a working example:
Assistant
The errors are about test code (wrong arg count, undefined variables), not about the f-string itself. The f-string interpolates correctly without any multi-line issues.
Let me also run a test with the simpler case that should work:
Assistant
No errors, just warnings about unused variables. Let me also test the idempotency:
Assistant
Idempotent. Let me also check the long f-string case:
Assistant
Idempotent. Let me now also test some edge cases:
Assistant
All edge cases work correctly. Let me also test with comments:
Assistant
All cases are handled correctly. Let me also verify the final summary of changes:
Assistant
Let me also check the format::expression.rs change:
Assistant
The changes look clean. Let me also run the lsp tests just to be safe:
Assistant
Now let me look at the test that was specifically for multi-line interpolation:
Assistant
This test is for the lexer error case, which is independent of the formatter. The formatter doesn't even get called when the lexer fails.
Let me think about whether my changes affect any other tests in unintended ways:
Assistant
All 292 format tests pass.
Let me also run the format_string tests specifically to make sure they all pass:
Assistant
45 format_string related tests pass. Let me also look at the full diff one more time to ensure everything is in order:
Assistant
The changes look good. Let me run the test suite one more time to ensure everything passes:
Assistant
Let me check the 175 UI failures - these are the emit/build tests:
Assistant
All UI failures are spec::build (Go compilation tests). These are pre-existing and unrelated to my changes.
Assistant
Let me also check the ui tests for format-string-related errors:
Assistant
All format string related tests pass. Let me run one more comprehensive test:
Assistant
The errors are about test code (wrong argument count, undefined variables), not about the f-string itself. The f-string is correctly formatted on a single line for the interpolation.
Let me now also verify with a real test case to ensure the formatter behavior is correct:
Assistant
Only warnings, no errors. Let me now also do a quick sanity check that the test format_string test still works:
Assistant
All tests pass. Let me also verify the format_string test still produces the correct snapshot:
Assistant
Let me also check the issue example more closely:
Assistant
Only warnings, no errors. The f-string is correctly formatted.
Now let me think about whether there are any other edge cases I should test. Let me look at the lexer behavior for f-string:
Assistant
The lexer checks
has_newline_betweento detect multi-line interpolations. As long as my fix ensures no newlines are in the formatted output for the interpolation, we're good.Let me also verify that my fix works for deeply nested cases:
Assistant
Nested f-strings work correctly. The inner function call is kept on one line.
Let me also check the case where there's a string literal as the interpolation:
Assistant
All cases work correctly. Let me also test a really long f-string:
Assistant
Both work correctly. The long line with the call is kept on one line (which is what we want for the lexer).
Now let me also verify the issue is fixed for the exact scenario from the issue:
Assistant
The formatter rejects the input because the lexer rejects it. But the output would be a single-line interpolation if it was valid input:
Assistant
The f-string is kept on one line. The fix is working correctly.
Let me also clean up my temporary test files:
Assistant
Let me run all the tests one more time to make sure nothing's broken:
Assistant
Let me also do a final check to ensure I haven't broken anything by running the format-related tests in the cli:
Assistant
All tests pass! Let me also check the final diff one more time:
Assistant
Assistant
My changes are:
crates/format/src/formatter/expression.rs- Modified theformat_stringfunction to useforce_unbroken().crates/format/src/lindig.rs- Added theForceUnbrokenDocument variant and related changes.
Let me also check if there are any other places where similar fixes might be needed (e.g., in raw format strings or other formatting contexts):
Assistant
Only one place handles FormatString. The fix is complete.
Let me run the format tests one more time as a sanity check:
Assistant
All 292 format tests pass. The fix is complete.
Let me also submit:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.