mirror of
https://github.com/openai/codex.git
synced 2026-11-25 07:23:22 +00:00
Keep incremental rendering with visualization context (#34217)
## Why Providing an inline visualization context forced every streamed Markdown update to rerender the full response, even when the source contained no visualization directives. ## What changed - Preserve the stable rendered prefix when visualization context is available but no directive is present. - Continue using canonical full rendering when the source contains a visualization directive. ## Testing Added a regression test that verifies directive-free streams match full rendering while advancing the stable source boundary. GitOrigin-RevId: cd70d2ba052db822d474eba8619d04cedf4c0573
This commit is contained in:
1 parent
aa982319c2
commit
74bfbda9b5
2 files changed
+35
-1
No files matched your search
@@ -102,7 +102,7 @@ impl StreamingRender {
|
||||
return;
|
||||
}
|
||||
|
||||
if inline_visualization_context.is_some() || raw_source.contains(DIRECTIVE_PREFIX) {
|
||||
if raw_source.contains(DIRECTIVE_PREFIX) {
|
||||
self.recompute(
|
||||
raw_source,
|
||||
width,
|
||||
|
||||
Reference in new issue
Block a user