fix: DAQ passthrough#5126
Conversation
tdejager
left a comment
There was a problem hiding this comment.
I'm not extremely familiar with this code, but do we flush periodically here, that's why the query sometimes gets through?
|
I believe the following was happening before:
pixi/crates/pixi_pty/src/unix/pty_session.rs Lines 138 to 150 in 5b4642f
The old query only made it through before after timeout, the new strategy is to take specific sequences and write them to the terminal immediately and then remove them from the buffer. |
|
Makes sense! |
|
Checked this out locally and seemed to work for me, good spelunking by Gemini and good sterwarding by @TheSkyentist :) |
|
One final thing and then I'd merge it |
|
Happy to help out! Big fan of pixi |
|
Always excited to hear that! Thanks for the contribution. |
Description
This fixes #4846 where pixi shell is slow to spawn a fish shell because as of fish 4.1 it waits for primary device attribute queries to the terminal. This fixes passes them through on the creation of the PTY session
How Has This Been Tested?
I have run the recommended tests:
and they have passed.
AI Disclosure
Tools: {e.g., Claude, Codex, GitHub Copilot, ChatGPT, etc.}
GitHub Copilot was used with Gemini 3 Pro. I don't have the original prompt, but the gist was to pass through the DAQ to the terminal and the context was the entire repo, the relevant file was identified.
Checklist:
schema/model.py.