Skip to content

Commit a4fe834

Browse files
committed
Fix feishu approval card lifecycle
1 parent 6d7ffb0 commit a4fe834

20 files changed

Lines changed: 1164 additions & 38 deletions

internal/cli/feishu_adapter_command_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ func (s *stubFeishuGatewayClient) BindStream(context.Context, string, string) er
222222
return nil
223223
}
224224
func (s *stubFeishuGatewayClient) Run(context.Context, string, string, string) error { return nil }
225+
func (s *stubFeishuGatewayClient) CancelRun(context.Context, string, string) (bool, error) {
226+
return true, nil
227+
}
225228
func (s *stubFeishuGatewayClient) ResolvePermission(context.Context, string, string) error {
226229
return nil
227230
}

internal/cli/gateway_commands.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,12 @@ func newGatewayServerCommand(use, short string, readWorkdir func(*cobra.Command)
126126
},
127127
}
128128

129-
cmd.Flags().StringVar(&options.ListenAddress, "listen", "", "gateway listen address (optional override)")
129+
cmd.Flags().StringVar(
130+
&options.ListenAddress,
131+
"listen",
132+
"",
133+
"gateway IPC listen address override (Windows named pipe / Unix socket path)",
134+
)
130135
cmd.Flags().StringVar(
131136
&options.HTTPAddress,
132137
"http-listen",

0 commit comments

Comments
 (0)