Skip to content

fix(tui): left-align question/answer pairs in log - #214

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/left-align-qa-log
Aug 3, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/left-align-qa-log

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • Questions previously rendered right-aligned with a trailing border pipe, leaving a large disconnected gap before the left-aligned answer and an inconsistent look vs. every other log entry type.
  • Left-align questions using the same > prompt gutter the active composer already uses (ACTIVE_GLYPH + theme::user_gutter_active_style_for), so a submitted question visually matches the prompt it was typed into.
  • A question immediately followed by its answer is now treated as one entry: no hairline rule or blank-line gap between them, while the rule still separates the pair from the next entry.

Test plan

  • cargo fmt --all -- --check
  • cargo test --package forge-tui --lib (716 passed, including wrapped-question alignment coverage)
  • git diff --check

User questions were right-aligned with a trailing border pipe, leaving a
large gap before the left-aligned answer and a stray hairline rule between
a question and its own reply. Render questions with the same "> " prompt
gutter the active composer uses, and treat a question immediately followed
by its answer as one entry so no rule/gap splits them.
@github-actions
github-actions Bot enabled auto-merge (squash) August 3, 2026 14:59
@github-actions
github-actions Bot merged commit 009cdd5 into main Aug 3, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
User questions were right-aligned with a trailing border pipe, leaving a
large gap before the left-aligned answer and a stray hairline rule between
a question and its own reply. Render questions with the same "> " prompt
gutter the active composer uses, and treat a question immediately followed
by its answer as one entry so no rule/gap splits them.
mohitranka added a commit that referenced this pull request Sep 11, 2026
User questions were right-aligned with a trailing border pipe, leaving a
large gap before the left-aligned answer and a stray hairline rule between
a question and its own reply. Render questions with the same "> " prompt
gutter the active composer uses, and treat a question immediately followed
by its answer as one entry so no rule/gap splits them.
mohitranka added a commit that referenced this pull request Sep 11, 2026
User questions were right-aligned with a trailing border pipe, leaving a
large gap before the left-aligned answer and a stray hairline rule between
a question and its own reply. Render questions with the same "> " prompt
gutter the active composer uses, and treat a question immediately followed
by its answer as one entry so no rule/gap splits them.
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