Skip to content

CLI Enhancements and PTY Streaming Fix#8

Merged
alexchaomander merged 1 commit intomainfrom
feat/cli-and-pty-improvements
Mar 27, 2026
Merged

CLI Enhancements and PTY Streaming Fix#8
alexchaomander merged 1 commit intomainfrom
feat/cli-and-pty-improvements

Conversation

@alexchaomander
Copy link
Copy Markdown
Owner

This PR introduces several power-user CLI features (init, status, attach, logs, stop) and refactors the PTY streaming pipeline to ensure bit-perfect output for agent traces. It also relaxes transcript filters to preserve agent reasoning states.

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a suite of new CLI commands (init, status, attach, stop, logs) for terminal-based session management and refactors the PTY streaming backend to decouple raw binary data from decoded text, ensuring bit-perfect terminal output. Additionally, it refines transcript filtering to better preserve Markdown structure and updates documentation to reflect these changes. Feedback was provided to enhance type safety in the CLI by replacing a generic type assertion with a more specific interface.

JOIN agent_profiles p ON p.id = s.agent_profile_id
WHERE s.status = 'running'
ORDER BY s.created_at DESC
`).all() as any[];
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The type assertion as any[] can be made more specific to improve type safety and maintainability. Consider defining an interface that accurately reflects the structure of the objects returned by this SQL query, which includes all fields from the Session type and the profile_name alias.

Suggested change
`).all() as any[];
`).all() as (Session & { profile_name: string })[];

@alexchaomander alexchaomander merged commit 0a20d13 into main Mar 27, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant