Skip to content

Commit 4037f22

Browse files
committed
add jq, do not return null into a list
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent 3d1d113 commit 4037f22

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

opencode/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func ListSessionsHandler(ctx context.Context, req *mcp.CallToolRequest, input Li
212212

213213
sessions := globalSessionManager.ListSessions(input.StatusFilter)
214214

215-
var sessionInfos []SessionInfo
215+
sessionInfos := []SessionInfo{}
216216
for _, session := range sessions {
217217
// Create message preview (first 100 chars)
218218
preview := session.Message

shell/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2222
curl \
2323
bash \
2424
wget \
25-
git \
25+
git jq \
2626
openssh-client \
2727
&& rm -rf /var/lib/apt/lists/*
2828

0 commit comments

Comments
 (0)