Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add close_on_exit terminal configuration option#63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
alvarosevilla95 wants to merge1 commit intocoder:main
base:main
Choose a base branch
Loading
fromalvarosevilla95:close-on-exit

Conversation

alvarosevilla95
Copy link

@alvarosevilla95alvarosevilla95 commentedJun 23, 2025
edited
Loading

Summary

Add a newclose_on_exit terminal configuration option that controls whether the terminal window closes automatically when the Claude process exits.

Motivation

Claude Code displays valuable spend metrics and usage statistics when the process exits. With the current behavior, the terminal window closes immediately on exit, making these metrics invisible to users. This feature allows users to configure the terminal to remain open so they can review this important information.

Changes

  • New Configuration Option: Addclose_on_exit boolean property to terminal settings (defaults totrue for backward compatibility)
  • Provider Support: Implement early return logic in both Snacks and native terminal providers
  • Documentation: Update README with the new configuration option and usage example

Usage

{"coder/claudecode.nvim",opts= {terminal= {close_on_exit=false,-- Keep terminal open to see spend metrics    },  },}

Benefits

  • Users can now see Claude's spend metrics and final output
  • Helpful for monitoring API usage and costs
  • Maintains backward compatibility
  • Simple configuration option that's easy to understand

Add configurable close_on_exit option to terminal settings that controlswhether the terminal window closes automatically when the Claude process exits.This allows users to see Claude's spend metrics and final output that aredisplayed on process exit, which would otherwise be lost when the terminalwindow closes immediately.- Add close_on_exit property to terminal configuration (default: true)- Implement early return logic in both snacks and native terminal providers- Update README documentation with new configuration option- Maintain backward compatibility with existing behavior
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@alvarosevilla95

[8]ページ先頭

©2009-2025 Movatter.jp