Skip to content

CPLAT-10878: esc exits conversation view to session list when preview closed#69

Merged
gavin-jeong merged 1 commit into
masterfrom
CPLAT-10878-ccx-esc-exit-conv
Jul 15, 2026
Merged

CPLAT-10878: esc exits conversation view to session list when preview closed#69
gavin-jeong merged 1 commit into
masterfrom
CPLAT-10878-ccx-esc-exit-conv

Conversation

@gavin-jeong

Copy link
Copy Markdown
Collaborator

JIRA: https://sendbird.atlassian.net/browse/CPLAT-10878

What

In the ccx TUI conversation view, esc now exits back to the session list when there is no drilldown and the preview pane is already closed.

Why

Previously, in a plain conversation view (no task/agent/cron drilldown, preview closed), esc was a no-op — only left (←/h) exited to the session list, which was unintuitive. Now esc behaves like left in that state.

Earlier esc presses are unchanged: they still pop a drilldown back into the parent conversation (re-opening its preview) or close the preview pane first, before this final exit step.

Implementation

  • internal/tui/conversation.go: in the !sp.Show plain-conv branch of the esc handler, set a.state = viewSessions instead of returning a no-op.
  • Tests: updated TestEscFromTaskDrilldownReturnsToParentConv (third esc now exits), renamed TestEscFromPlainConvStaysInConvListTestEscFromPlainConvExitsToConvList.

Test

  • go build ./..., go test ./internal/tui/ -run TestEsc pass.

In a plain conversation view (no task/agent/cron drilldown, preview
already closed), esc was a no-op — only left exited to the session list.
Make esc behave like left in that state so it returns to the session
list. Earlier esc presses still pop a drilldown or close the preview
first, unchanged.

CPLAT-10878
@Kairo-Kim Kairo-Kim added the auto-review/approved Auto-approved by the Slack auto-reviewer bot label Jul 15, 2026

@jinsekim jinsekim left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

@jinsekim jinsekim left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

@gavin-jeong
gavin-jeong merged commit ffeefb4 into master Jul 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-review/approved Auto-approved by the Slack auto-reviewer bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants