Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2ba21dc
wip: goose copilot — PR review bot via GitHub App webhooks
Abhijay007 May 12, 2026
e1818e3
feat(copilot): replace recipe with direct-Rust handler on goose review
Abhijay007 May 14, 2026
e9f8071
feat(copilot): @goose-copilot mention replies with optional commit+push
Abhijay007 May 15, 2026
d94275b
feat(copilot): emoji reactions, OAuth reconnect, tabbed Desktop UI
Abhijay007 May 16, 2026
de6521c
feat(copilot): preferences, model picker, repo listing end-to-end
Abhijay007 May 18, 2026
5d989bc
chore(copilot): drop personal wrangler/README/lockfile and trim non-e…
Abhijay007 May 19, 2026
4360433
refactor(copilot): split route handler into crates/goose/src/copilot/…
Abhijay007 May 20, 2026
bf8469a
feat(server): restrict public tunnel to copilot paths with constant-t…
Abhijay007 May 20, 2026
5825a52
feat(switchboard): tunnel reachability probe + agent_id verify + hand…
Abhijay007 May 20, 2026
560c8f1
test(copilot): server route integration, switchboard contract, CI wor…
Abhijay007 May 20, 2026
5841605
fix(copilot): textarea sync race + visible inline-rejection summary
Abhijay007 May 20, 2026
126a191
remove unused dependency
Abhijay007 May 20, 2026
b8cdc2c
chore(copilot): add experimental feature banner
Abhijay007 May 20, 2026
42f8fc8
chore: drop Slack and Linear coming-soon placeholders from Connectors
Abhijay007 May 25, 2026
abd52c2
fix: safe UTF-8 truncation and issue prompt for open-new-PRs
Abhijay007 May 26, 2026
3279a29
minor fix
Abhijay007 May 26, 2026
28bd559
rust lint fix
Abhijay007 May 26, 2026
781c138
updated schema
Abhijay007 May 30, 2026
3ad5acd
fix: address P1 review-blocking GitHub flow issues
Abhijay007 May 30, 2026
c597113
fix: setup and comment flows issues
Abhijay007 May 30, 2026
1459410
fix: remaning issues
Abhijay007 May 30, 2026
092318c
fix: fix naming in UI to copilot to goose bot
Abhijay007 May 30, 2026
4a7f3e2
refactor(major): renamed goose copilot to goose bot for code maintain…
Abhijay007 May 30, 2026
4627c5b
fix: fixed linting errors and p1 issues
Abhijay007 May 30, 2026
e148b88
fix: resolved conficts and some security fixes
Abhijay007 Jun 4, 2026
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
44 changes: 44 additions & 0 deletions .github/workflows/goose-bot-switchboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: GooseBot Switchboard CI

on:
push:
branches: [main]
paths:
- "services/goose-bot-switchboard/**"
- ".github/workflows/goose-bot-switchboard.yml"
pull_request:
branches: [main]
paths:
- "services/goose-bot-switchboard/**"
- ".github/workflows/goose-bot-switchboard.yml"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
working-directory: services/goose-bot-switchboard

jobs:
test:
name: Typecheck & test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
with:
version: 10.30.3

- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 24
cache: pnpm
cache-dependency-path: services/goose-bot-switchboard/pnpm-lock.yaml

- run: pnpm install --frozen-lockfile
- run: pnpm typecheck
- run: pnpm test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ do_not_version/
/ui/desktop/src/bin/goose-scheduler-executor
/ui/desktop/src/bin/goose
/.env
**/.env
!**/.env.example
**/*.pem

/working_dir

Expand Down
13 changes: 11 additions & 2 deletions crates/goose-cli/src/commands/review/orchestrator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ pub struct Finding {
pub line_end: i64,
pub summary: String,
pub check: String,
/// Optional concrete fix: the exact line(s) that should replace
/// `path:line_start..line_end`. Consumers (e.g. PR-review bots) can
/// render this as a GitHub ```suggestion block.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub suggestion: Option<String>,
}

/// Schema the check subprocess is required to emit.
Expand All @@ -75,6 +80,8 @@ struct RawFinding {
line_end: Option<i64>,
#[serde(default)]
summary: Option<String>,
#[serde(default)]
suggestion: Option<String>,
}

/// Run all discovered checks concurrently as `goose run` subprocesses.
Expand Down Expand Up @@ -217,6 +224,7 @@ async fn run_single_check_subprocess(
line_end: r.line_end.unwrap_or(0),
summary: r.summary.unwrap_or_default(),
check: check.name.clone(),
suggestion: r.suggestion.filter(|s| !s.trim().is_empty()),
})
.collect())
}
Expand Down Expand Up @@ -370,6 +378,7 @@ pub async fn run_main_pass_in_parallel(
line_end: r.line_end.unwrap_or(0),
summary: r.summary.unwrap_or_default(),
check: "main".to_string(),
suggestion: r.suggestion.filter(|s| !s.trim().is_empty()),
})
.collect();
if !quiet {
Expand Down Expand Up @@ -617,7 +626,7 @@ fn build_main_pass_prompt(
);
s.push_str(
"## Output\n\nReturn ONLY valid JSON with this exact schema:\n\n\
{\n \"findings\": [\n {\n \"severity\": \"low|medium|high|critical\",\n \"path\": \"relative/path/to/file\",\n \"line_start\": 10,\n \"line_end\": 12,\n \"summary\": \"One-paragraph actionable explanation of the issue and the fix\"\n }\n ]\n}\n\nIf there are no real issues, return:\n{\"findings\":[]}\n\nDo NOT include any text before or after the JSON. Do NOT wrap the JSON in code fences.\n\n",
{\n \"findings\": [\n {\n \"severity\": \"low|medium|high|critical\",\n \"path\": \"relative/path/to/file\",\n \"line_start\": 10,\n \"line_end\": 12,\n \"summary\": \"One-paragraph actionable explanation of the issue and the fix\",\n \"suggestion\": \"the exact line(s) that should replace path:line_start..line_end — no leading +/-, no surrounding context. Omit this field when you don't have a single concrete replacement (e.g. the fix spans multiple non-contiguous locations or requires structural changes).\"\n }\n ]\n}\n\nIf there are no real issues, return:\n{\"findings\":[]}\n\nDo NOT include any text before or after the JSON. Do NOT wrap the JSON in code fences.\n\n",
);
s.push_str("## Diff\n\n```diff\n");
s.push_str(file_diff.trim_end_matches('\n'));
Expand Down Expand Up @@ -674,7 +683,7 @@ fn build_check_prompt(
s.push_str("Do NOT report issues for unchanged/pre-existing code shown for context.\n\n");
s.push_str(
"Return ONLY valid JSON with this exact schema:\n\
{\n \"findings\": [\n {\n \"severity\": \"low|medium|high|critical\",\n \"path\": \"relative/path/to/file\",\n \"line_start\": 10,\n \"line_end\": 12,\n \"summary\": \"One-sentence actionable issue\"\n }\n ]\n}\n\nIf there are no issues, return:\n{\"findings\":[]}\n\nDo NOT include any text before or after the JSON. Do NOT wrap the JSON in code fences.\n\n",
{\n \"findings\": [\n {\n \"severity\": \"low|medium|high|critical\",\n \"path\": \"relative/path/to/file\",\n \"line_start\": 10,\n \"line_end\": 12,\n \"summary\": \"One-sentence actionable issue\",\n \"suggestion\": \"the exact line(s) that should replace path:line_start..line_end — no leading +/-, no surrounding context. Omit when no single concrete replacement applies.\"\n }\n ]\n}\n\nIf there are no issues, return:\n{\"findings\":[]}\n\nDo NOT include any text before or after the JSON. Do NOT wrap the JSON in code fences.\n\n",
);
s.push_str("Check instructions:\n\n");
s.push_str(check.body.trim());
Expand Down
28 changes: 28 additions & 0 deletions crates/goose-server/src/openapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,15 @@ derive_utoipa!(IconTheme as IconThemeSchema);
super::routes::tunnel::start_tunnel,
super::routes::tunnel::stop_tunnel,
super::routes::tunnel::get_tunnel_status,
super::routes::goose_bot::review,
super::routes::goose_bot::setup,
super::routes::goose_bot::disconnect,
super::routes::goose_bot::get_status,
super::routes::goose_bot::comment,
super::routes::goose_bot::get_prefs,
super::routes::goose_bot::put_prefs,
super::routes::goose_bot::get_repos,
super::routes::goose_bot::get_analytics,
super::routes::telemetry::send_telemetry_event,
super::routes::dictation::transcribe_dictation,
super::routes::dictation::get_dictation_config,
Expand Down Expand Up @@ -658,6 +667,25 @@ derive_utoipa!(IconTheme as IconThemeSchema);
super::routes::setup::SetupResponse,
super::tunnel::TunnelInfo,
super::tunnel::TunnelState,
goose::goose_bot::GooseBotReviewRequest,
goose::goose_bot::GooseBotReviewResponse,
goose::goose_bot::GooseBotSetupResponse,
goose::goose_bot::GooseBotStatusResponse,
goose::goose_bot::GooseBotDisconnectResponse,
goose::goose_bot::GooseBotCommentRequest,
goose::goose_bot::GooseBotPrefsRequest,
goose::goose_bot::GooseBotPrefsResponse,
goose::goose_bot::GooseBotPrefs,
goose::goose_bot::RoutingPrefs,
goose::goose_bot::TriggerPreference,
goose::goose_bot::TriggerPermission,
goose::goose_bot::ReviewOutputStyle,
goose::goose_bot::ReviewModelChoice,
goose::goose_bot::ReviewSeverity,
goose::goose_bot::GooseBotRepo,
goose::goose_bot::GooseBotReposResponse,
goose::goose_bot::RepoVisibility,
goose::goose_bot::GooseBotAnalytics,
super::routes::telemetry::TelemetryEventRequest,
goose::goose_apps::GooseApp,
goose::goose_apps::WindowProps,
Expand Down
Loading
Loading