-
Notifications
You must be signed in to change notification settings - Fork 14.2k
fix broken tests #24279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix broken tests #24279
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -46,6 +46,7 @@ import { TerminalProvider } from './ui/contexts/TerminalContext.js'; | |||||||
| import { isAlternateBufferEnabled } from './ui/hooks/useAlternateBuffer.js'; | ||||||||
| import { OverflowProvider } from './ui/contexts/OverflowContext.js'; | ||||||||
| import { profiler } from './ui/components/DebugProfiler.js'; | ||||||||
| import { initializeConsoleStore } from './ui/hooks/useConsoleMessages.js'; | ||||||||
|
|
||||||||
| const SLOW_RENDER_MS = 200; | ||||||||
|
|
||||||||
|
|
@@ -57,6 +58,7 @@ export async function startInteractiveUI( | |||||||
| resumedSessionData: ResumedSessionData | undefined, | ||||||||
| initializationResult: InitializationResult, | ||||||||
| ) { | ||||||||
| initializeConsoleStore(); | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
References
|
||||||||
| // Never enter Ink alternate buffer mode when screen reader mode is enabled | ||||||||
| // as there is no benefit of alternate buffer mode when using a screen reader | ||||||||
| // and the Ink alternate buffer mode requires line wrapping harmful to | ||||||||
|
|
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The removal of
initializeConsoleStore()ingemini.tsxis incorrect as the redirection of output tostderris intentional and expected behavior. Reverting this change is necessary to maintain the intended architecture. Furthermore, the resulting logic that writes raw data chunks directly tostdoutandstderrposes a terminal injection risk. All user-provided data must be treated as untrusted and sanitized at the point of use, following the principle of defense-in-depth.References