Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

merge: resolve conflicts with main (reactions feature)

Jiayuane20e1b74dca4
diff --cc apps/web/shared/types/events.ts
index 4e22b5e2cf,c9fb5a5914..aac9f0a9e9
--- a/apps/web/shared/types/events.ts
+++ b/apps/web/shared/types/events.ts
@@@ -149,27 -152,27 +153,52 @@@ export interface ActivityCreatedPayloa
entry: TimelineEntry;
}
+export interface TaskMessagePayload {
+ task_id: string;
+ issue_id: string;
+ seq: number;
+ type: "text" | "thinking" | "tool_use" | "tool_result" | "error";
+ tool?: string;
+ content?: string;
+ input?: Record<string, unknown>;
+ output?: string;
+}
+
+export interface TaskCompletedPayload {
+ task_id: string;
+ agent_id: string;
+ issue_id: string;
+ status: string;
+}
+
+export interface TaskFailedPayload {
+ task_id: string;
+ agent_id: string;
+ issue_id: string;
+ status: string;
+}
++
+ export interface ReactionAddedPayload {
+ reaction: Reaction;
+ issue_id: string;
+ }
+
+ export interface ReactionRemovedPayload {
+ comment_id: string;
+ issue_id: string;
+ emoji: string;
+ actor_type: string;
+ actor_id: string;
+ }
+
+ export interface IssueReactionAddedPayload {
+ reaction: IssueReaction;
+ issue_id: string;
+ }
+
+ export interface IssueReactionRemovedPayload {
+ issue_id: string;
+ emoji: string;
+ actor_type: string;
+ actor_id: string;
+ }
diff --cc server/cmd/server/router.go
index be9e7ff4a7,e7cfaf23ce..2de70b1ea8
--- a/server/cmd/server/router.go
+++ b/server/cmd/server/router.go
@@@ -166,8 -164,8 +166,10 @@@ func NewRouter(pool *pgxpool.Pool, hub
r.Get("/subscribers", h.ListIssueSubscribers)
r.Post("/subscribe", h.SubscribeToIssue)
r.Post("/unsubscribe", h.UnsubscribeFromIssue)
+ r.Get("/active-task", h.GetActiveTaskForIssue)
+ r.Get("/task-runs", h.ListTasksByIssue)
+ r.Post("/reactions", h.AddIssueReaction)
+ r.Delete("/reactions", h.RemoveIssueReaction)
})
})