Skip to content

Commit da3affe

Browse files
committed
Terminal cleanup on exit
1 parent 9146448 commit da3affe

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.7.1] - 2026-01-02
11+
12+
### Fixed
13+
14+
- Terminal cleanup on exit - raw ANSI escape codes no longer dumped when pressing q or Ctrl+C
15+
1016
## [0.7.0] - 2026-01-02
1117

1218
### Added
@@ -93,7 +99,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9399
- Standalone binary builds for macOS (arm64 and x64)
94100
- npm package distribution
95101

96-
[Unreleased]: https://github.com/AgentWorkforce/limit/compare/v0.7.0...HEAD
102+
[Unreleased]: https://github.com/AgentWorkforce/limit/compare/v0.7.1...HEAD
103+
[0.7.1]: https://github.com/AgentWorkforce/limit/compare/v0.7.0...v0.7.1
97104
[0.7.0]: https://github.com/AgentWorkforce/limit/compare/v0.6.2...v0.7.0
98105
[0.6.2]: https://github.com/AgentWorkforce/limit/compare/v0.6.0...v0.6.2
99106
[0.6.0]: https://github.com/AgentWorkforce/limit/compare/v0.5.1...v0.6.0

bin/cli.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ if (command === "usage") {
1414

1515
const root = createRoot(renderer);
1616

17-
const cleanup = () => {
17+
const cleanup = async () => {
1818
root.unmount();
19-
renderer.destroy();
19+
await renderer.destroy();
20+
process.stdout.write("\x1b[?25h"); // Ensure cursor is visible
2021
process.exit(0);
2122
};
2223

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "agent-limit",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "Terminal dashboard to monitor Claude Code, Codex, and other agent usage limits",
55
"type": "module",
66
"main": "src/index.tsx",

0 commit comments

Comments
 (0)