feat: answer a click on a Slack approval card that carries no tool call with a private note to ask again or approve in the dashboard

This commit is contained in:
Matthew Meszaros
2026-10-04 05:23:36 -07:00
parent c5ff613c5d
commit fd940d905b
+4 -3
View File
@@ -180,13 +180,14 @@ func (s *Service) requireLinked(ctx context.Context, p *interaction) *actor {
// member may decide, and each card is decided once.
func (s *Service) handleApproval(ctx context.Context, p *interaction, value, decision string) {
rowID, toolCallID, ok := parseApprovalValue(value)
if !ok {
return
}
a := s.requireLinked(ctx, p)
if a == nil {
return
}
if !ok {
s.whisper(ctx, a.token, p, "This approval card is from an earlier version and can no longer decide anything. Ask Warmbly again, or approve it in the dashboard.")
return
}
row, err := s.repo.GetAgentThreadByID(ctx, a.link.OrganizationID, rowID)
if err != nil {
return