Skip to content

Conversation

@rushilpatel0
Copy link
Contributor

Motivation

Content

Testing

Please check the following before marking your PR as ready for review

  • I have added tests for my changes
  • I have updated the documentation or added new documentation as needed

@rushilpatel0 rushilpatel0 requested review from a team and codegen-team as code owners August 19, 2025 00:03
@codecov
Copy link

codecov bot commented Aug 19, 2025

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/codegen/cli/tui/app.py 0.00% 5 Missing ⚠️

@rushilpatel0 rushilpatel0 merged commit 014b60b into develop Aug 19, 2025
17 of 18 checks passed
@rushilpatel0 rushilpatel0 deleted the rpatel/switch-esc-to-B branch August 19, 2025 00:07
@github-actions
Copy link
Contributor

🎉 This PR is included in version 0.56.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

import select
from datetime import datetime
from typing import Any

Copy link
Contributor

Choose a reason for hiding this comment

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

Input handling regression: Removing select breaks bare ESC handling
Without select, a lone ESC blocks on read(1). Keep select to non-blockingly detect escape sequences.

Suggested change
import select

import select
from datetime import datetime
from typing import Any

Copy link
Contributor

Choose a reason for hiding this comment

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

Logic bug: Back action only recognizes uppercase 'B'
Lowercase 'b' (common in fallback input mode and when users type without Shift) won’t trigger back. Accept both cases.

Suggested change
# In _show_post_creation_menu loop
elif key.lower() == "b": # Back to new tab
self.current_tab = 1 # 'new' tab index
self.input_mode = True
break
# In _handle_input_mode_keypress
if key.lower() == "b": # Back action in new tab
self.input_mode = False

@codegen-sh
Copy link
Contributor

codegen-sh bot commented Aug 19, 2025

Found 2 issues. Please review my inline comments above.

🔍 View my analysis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants