Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Added

- `agent-tty ls` is now a short alias for `agent-tty list`. Like the `d`→`dashboard` alias, it is an explicit alias (not prefix matching), so it resolves unambiguously to `list` and is unaffected by the other commands ([#135](https://github.com/coder/agent-tty/pull/135)).

## [v0.4.0] - 2026-06-08

### Added
Expand Down
1 change: 1 addition & 0 deletions src/cli/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ async function main(): Promise<void> {

program
.command('list')
.alias('ls')
.description('List sessions')
.option('--all', 'Include exited sessions', false)
.option('--json', 'Emit a JSON command envelope', false)
Expand Down
10 changes: 10 additions & 0 deletions test/integration/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,16 @@ describe('CLI integration', () => {
);
});

it('resolves the `ls` alias to the list command', () => {
// `--help` exits before the action runs, so this exercises alias
// resolution without touching the Home Registry or reconciling sessions.
const result = runCli(['ls', '--help'], testEnv());

expect(result.status).toBe(0);
expect(result.stderr).toBe('');
expect(result.stdout).toContain('List sessions');
});

it('accepts --append-newline for type', () => {
const result = runCli(
['type', 'session-01', 'hello', '--append-newline', '--json'],
Expand Down
Loading