Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
feat: include repo description in agent brief (#3203)
LinYushen8e9df90d329e
diff --git a/server/internal/daemon/daemon.go b/server/internal/daemon/daemon.goindex 5966406334..2b7a5c80dc 100644--- a/server/internal/daemon/daemon.go+++ b/server/internal/daemon/daemon.go@@ -3088,7 +3088,7 @@ func convertReposForEnv(repos []RepoData) []execenv.RepoContextForEnv {}result := make([]execenv.RepoContextForEnv, len(repos))for i, r := range repos {- result[i] = execenv.RepoContextForEnv{URL: r.URL}+ result[i] = execenv.RepoContextForEnv{URL: r.URL, Description: r.Description}}return result}diff --git a/server/internal/daemon/execenv/execenv.go b/server/internal/daemon/execenv/execenv.goindex 66f7329ef3..2e50921434 100644--- a/server/internal/daemon/execenv/execenv.go+++ b/server/internal/daemon/execenv/execenv.go@@ -14,7 +14,8 @@ import (// RepoContextForEnv describes a workspace repo available for checkout.type RepoContextForEnv struct {- URL string // remote URL+ URL string // remote URL+ Description string // optional repo description}// ProjectResourceForEnv describes a single resource attached to the issue'sdiff --git a/server/internal/daemon/execenv/runtime_config.go b/server/internal/daemon/execenv/runtime_config.goindex 2aca117014..77769e8a9a 100644--- a/server/internal/daemon/execenv/runtime_config.go+++ b/server/internal/daemon/execenv/runtime_config.go@@ -248,7 +248,11 @@ func buildMetaSkillContent(provider string, ctx TaskContextForEnv) string {b.WriteString("The following code repositories are available in this workspace.\n")b.WriteString("Use `multica repo checkout <url>` to check out a repository into your working directory. Add `--ref <branch-or-sha>` when you need an exact branch, tag, or commit.\n\n")for _, repo := range ctx.Repos {- fmt.Fprintf(&b, "- %s\n", repo.URL)+ if repo.Description != "" {+ fmt.Fprintf(&b, "- %s — %s\n", repo.URL, repo.Description)+ } else {+ fmt.Fprintf(&b, "- %s\n", repo.URL)+ }}b.WriteString("\nThe checkout command creates a git worktree with a dedicated branch. You can check out one or more repos as needed, and can pass `--ref` for review/QA on a non-default branch or commit.\n\n")}diff --git a/server/internal/daemon/types.go b/server/internal/daemon/types.goindex 0cd3c40be8..cea346c4b0 100644--- a/server/internal/daemon/types.go+++ b/server/internal/daemon/types.go@@ -18,7 +18,8 @@ type Runtime struct {// RepoData holds repository information from the workspace.type RepoData struct {- URL string `json:"url"`+ URL string `json:"url"`+ Description string `json:"description,omitempty"`}// ProjectResourceData mirrors handler.ProjectResourceData — a single projectdiff --git a/server/internal/handler/agent.go b/server/internal/handler/agent.goindex 37829417a9..03dad78da5 100644--- a/server/internal/handler/agent.go+++ b/server/internal/handler/agent.go@@ -123,7 +123,8 @@ func agentToResponse(a db.Agent) AgentResponse {// RepoData holds repository information included in claim responses so the// daemon can set up worktrees for each workspace repo.type RepoData struct {- URL string `json:"url"`+ URL string `json:"url"`+ Description string `json:"description,omitempty"`}// ProjectResourceData is the wire shape for a project resource included in adiff --git a/server/internal/handler/daemon.go b/server/internal/handler/daemon.goindex a390bf2959..b9d3b8b4d0 100644--- a/server/internal/handler/daemon.go+++ b/server/internal/handler/daemon.go@@ -192,7 +192,7 @@ func normalizeWorkspaceRepos(repos []RepoData) []RepoData {continue}seen[url] = struct{}{}- normalized = append(normalized, RepoData{URL: url})+ normalized = append(normalized, RepoData{URL: url, Description: repo.Description})}return normalized}