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: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Contributing to Copilot Dispatch
# Contributing to Dispatch

Thank you for your interest in contributing! Here's how to get started.

## Prerequisites

- **Go 1.26.4+** (see `go.mod` for the authoritative version)
- **Go 1.26.5+** (see `go.mod` for the authoritative version)
- **Git**
- **[Mage](https://magefile.org/)** — Go-based build tool (install: `go install github.com/magefile/mage@latest`)

Expand Down
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -630,12 +630,13 @@ dispatch config path # print the config file path
| `default_shell` | string | `""` | Preferred shell (`bash`, `zsh`, `pwsh`, `cmd.exe`). Empty = auto-detect |
| `default_terminal` | string | `""` | Terminal emulator. Empty = auto-detect |
| `default_time_range` | string | `"1d"` | Time filter: `1h`, `1d`, `7d`, `all` |
| `default_sort` | string | `"updated"` | Sort field: `updated`, `created`, `turns`, `name`, `folder` |
| `default_sort` | string | `"updated"` | Sort field: `updated`, `created`, `turns`, `name`, `folder`, `frecency` |
| `default_sort_order` | string | `"desc"` | Sort direction: `asc`, `desc` |
| `default_pivot` | string | `"folder"` | Grouping: `none`, `folder`, `repo`, `branch`, `date` |
| `default_pivot` | string | `"folder"` | Grouping: `none`, `folder`, `repo`, `branch`, `date`, `host` |
| `default_collapsed` | bool | `false` | Start group headers collapsed (single-line) |
| `show_preview` | bool | `true` | Show preview pane on startup |
| `preview_position` | string | `"right"` | Position of the preview pane: `right`, `bottom`, `left`, `top` |
| `redact_preview_secrets` | bool | `false` | Mask common secret patterns (bearer tokens, GitHub PATs, connection strings, `.env` secrets) with `[redacted]` in the preview pane. Rendering only; stored session data is never modified |
| `conversation_newest_first` | bool | `true` | Show newest conversation turns first in preview |
| `max_sessions` | int | `100` | Maximum sessions to load |
| `yoloMode` | bool | `false` | Pass `--allow-all` to Copilot CLI (auto-confirm commands) |
Expand Down Expand Up @@ -746,18 +747,18 @@ named keys (`up`, `down`, `left`, `right`, `enter`, `esc`, `tab`, `space`,

Available action names:

`up`, `down`, `left`, `right`, `enter`, `space`, `quit`, `force_quit`,
`search`, `escape`, `filter`, `sort`, `sort_order`, `pivot`,
`preview`, `reindex`, `help`, `config`, `time_range_1`, `time_range_2`,
`time_range_3`, `time_range_4`, `hide`, `toggle_hidden`, `star`,
`launch_window`, `launch_tab`, `launch_pane`, `preview_scroll_up`,
`preview_scroll_down`, `jump_next_attention`, `filter_attention`, `launch_all`,
`select_all`, `deselect_all`, `conversation_sort`, `preview_position`,
`resume_interrupted`, `view_plan`, `copy_id`, `copy_path`,
`copy_resume_command`, `copy_preview`, `expand_collapse_all`,
`scan_work_status`, `export`, `note`, `shift_up`, `shift_down`, `view_switch`,
`open_file`, `open_dir`, `open_ref`, `timeline`, `compare`, `git_status`,
`cmd_palette`.
`up`, `down`, `jump_top`, `jump_bottom`, `left`, `right`, `enter`, `space`,
`quit`, `force_quit`, `search`, `escape`, `filter`, `sort`, `sort_order`,
`pivot`, `pivot_order`, `preview`, `preview_fullscreen`, `reindex`, `help`,
`config`, `time_range_1`, `time_range_2`, `time_range_3`, `time_range_4`,
`hide`, `toggle_hidden`, `star`, `launch_window`, `launch_tab`, `launch_pane`,
`preview_scroll_up`, `preview_scroll_down`, `jump_next_attention`,
`filter_attention`, `launch_all`, `select_all`, `deselect_all`,
`conversation_sort`, `preview_position`, `resume_interrupted`, `view_plan`,
`copy_id`, `copy_path`, `copy_resume_command`, `copy_preview`,
`expand_collapse_all`, `scan_work_status`, `export`, `note`, `tags`, `alias`,
`shift_up`, `shift_down`, `view_switch`, `open_file`, `open_dir`, `open_ref`,
`timeline`, `compare`, `git_status`, `cmd_palette`.

## Themes

Expand Down Expand Up @@ -809,6 +810,7 @@ Unknown flags print an error message with usage help and exit with code 1.
|---|---|
| `DISPATCH_CONFIG` | Override the path to the config file. Must be an absolute, non-UNC path; a relative or UNC value is ignored and the default location is used |
| `DISPATCH_DB` | Override the path to the Copilot CLI session store database |
| `DISPATCH_SESSION_STATE` | Override the path to the Copilot CLI session state directory |
| `DISPATCH_LOG` | Path to a log file (enables debug logging) |
| `DISPATCH_NO_UPDATE_CHECK` | Skip the background release check when set to `1`, `true`, `yes`, or `on` |

Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Reporting a Vulnerability

If you discover a security vulnerability in Copilot Dispatch, please report it
If you discover a security vulnerability in Dispatch, please report it
responsibly. **Do not open a public GitHub issue.**

Instead, please use [GitHub's private vulnerability reporting](https://github.com/jongio/dispatch/security/advisories/new)
Expand All @@ -29,7 +29,7 @@ or email the maintainer directly through their GitHub profile.

## Security Model

Copilot Dispatch is a **local-first** tool that reads from your Copilot CLI
Dispatch is a **local-first** tool that reads from your Copilot CLI
session store (`~/.copilot/session-store.db`) in **read-only mode**. It makes
network requests in the following scenarios:

Expand Down
6 changes: 3 additions & 3 deletions cmd/dispatch/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ const bashCompletionScript = `# bash completion for dispatch
_dispatch_completion() {
local cur="${COMP_WORDS[COMP_CWORD]}"
local bin="${COMP_WORDS[0]}"
local commands="help version open new doctor update completion stats search tags aliases compare prune tag watch config export info man"
local commands="help version open new doctor update completion stats search tags notes views aliases compare prune tag watch config export info man"
local flags="-h --help -v --version --demo --clear-cache --reindex --current --cwd --repo --branch --query"

if [[ "${COMP_CWORD}" -eq 1 ]]; then
Expand Down Expand Up @@ -431,7 +431,7 @@ const zshCompletionScript = `#compdef dispatch disp
_dispatch_completion() {
local -a commands flags configsubs shells aliases configkeys openflags newflags
local bin=${words[1]}
commands=(help version open new doctor update completion stats search tags aliases compare prune tag watch config export info man)
commands=(help version open new doctor update completion stats search tags notes views aliases compare prune tag watch config export info man)
configsubs=(list get set unset edit path)
openflags=(--mode --last --print --agent --model --yolo)
newflags=(--mode --agent --model --yolo)
Expand Down Expand Up @@ -500,7 +500,7 @@ end

for bin in dispatch disp
complete -c $bin -f
complete -c $bin -n '__dispatch_needs_command' -a 'help version open new doctor update completion stats search tags aliases compare prune tag watch config export info man'
complete -c $bin -n '__dispatch_needs_command' -a 'help version open new doctor update completion stats search tags notes views aliases compare prune tag watch config export info man'
complete -c $bin -n '__dispatch_needs_command' -a '-h --help -v --version --demo --clear-cache --reindex --current --cwd --repo --branch --query'
complete -c $bin -n '__dispatch_after completion' -a "($bin __complete shells)"
complete -c $bin -n '__dispatch_after open' -a "($bin __complete aliases)"
Expand Down
1 change: 1 addition & 0 deletions cmd/dispatch/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ Startup filters:
Environment:
DISPATCH_DB Path to a custom session store database
DISPATCH_SESSION_STATE Path to a custom session state directory
DISPATCH_CONFIG Path to a custom config file (overrides the default location)
DISPATCH_LOG Path to a log file (enables debug logging)
DISPATCH_NO_UPDATE_CHECK
Skip the background release check when set to 1, true, yes, or on
Expand Down
1 change: 1 addition & 0 deletions cmd/dispatch/man.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ var manFlags = []manEntry{
var manEnv = []manEntry{
{"DISPATCH_DB", "Path to a custom session store database."},
{"DISPATCH_SESSION_STATE", "Path to a custom session state directory."},
{"DISPATCH_CONFIG", "Path to a custom config file (overrides the default location)."},
{"DISPATCH_LOG", "Path to a log file (enables debug logging)."},
{"DISPATCH_NO_UPDATE_CHECK", "Skip the background release check when set to 1, true, yes, or on."},
}
Expand Down
Loading