Skip to content

Commit c86e1a2

Browse files
committed
Improve welcome message
1 parent 21f6426 commit c86e1a2

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Improve welcome message.
6+
57
## 0.54.0
68

79
- Improve large file handling in `read-file` tool:

integration-test/integration/initialize_test.clj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
(ns integration.initialize-test
22
(:require
3+
[clojure.string :as string]
34
[clojure.test :refer [deftest is testing]]
45
[integration.eca :as eca]
56
[integration.fixture :as fixture]
@@ -32,7 +33,7 @@
3233
:chatDefaultModel "anthropic/claude-sonnet-4-20250514"
3334
:chatBehaviors ["agent" "plan"]
3435
:chatDefaultBehavior "plan"
35-
:chatWelcomeMessage "Welcome to ECA!\n\nType '/' for commands\n\n"}
36+
:chatWelcomeMessage (m/pred #(string/includes? % "Welcome to ECA!"))}
3637
(eca/request! (fixture/initialize-request
3738
{:initializationOptions (merge fixture/default-init-options
3839
{:chat {:defaultBehavior "plan"}})})))))
@@ -46,7 +47,7 @@
4647
:selectModel "anthropic/claude-sonnet-4-20250514"
4748
:behaviors ["agent" "plan"]
4849
:selectBehavior "plan"
49-
:welcomeMessage "Welcome to ECA!\n\nType '/' for commands\n\n"}}
50+
:welcomeMessage (m/pred #(string/includes? % "Welcome to ECA!"))}}
5051
(eca/client-awaits-server-notification :config/updated)))))
5152

5253
(testing "Native tools updated"
@@ -90,7 +91,7 @@
9091
:chatDefaultModel "my-custom/bar-2"
9192
:chatBehaviors ["agent" "plan"]
9293
:chatDefaultBehavior "agent"
93-
:chatWelcomeMessage "Welcome to ECA!\n\nType '/' for commands\n\n"}
94+
:chatWelcomeMessage (m/pred #(string/includes? % "Welcome to ECA!"))}
9495
(eca/request! (fixture/initialize-request
9596
{:initializationOptions (merge fixture/default-init-options
9697
{:defaultModel "my-custom/bar-2"
@@ -110,5 +111,5 @@
110111
:selectModel "my-custom/bar-2"
111112
:behaviors ["agent" "plan"]
112113
:selectBehavior "agent"
113-
:welcomeMessage "Welcome to ECA!\n\nType '/' for commands\n\n"}}
114+
:welcomeMessage (m/pred #(string/includes? % "Welcome to ECA!"))}}
114115
(eca/client-awaits-server-notification :config/updated))))))

src/eca/config.clj

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
[clojure.string :as string]
1515
[eca.logger :as logger]
1616
[eca.messenger :as messenger]
17-
[eca.shared :as shared])
17+
[eca.shared :as shared :refer [multi-str]])
1818
(:import
1919
[java.io File]))
2020

@@ -89,7 +89,17 @@
8989
:mcpTimeoutSeconds 60
9090
:lspTimeoutSeconds 30
9191
:mcpServers {}
92-
:welcomeMessage "Welcome to ECA!\n\nType '/' for commands\n\n"
92+
:welcomeMessage (multi-str "# Welcome to ECA!"
93+
""
94+
"Complete `/` for all commands"
95+
""
96+
"- `/login` to authenticate with providers"
97+
"- `/init` to create/update AGENTS.md"
98+
"- `/doctor` or `/config` to troubleshoot"
99+
""
100+
"Add more contexts in `@`"
101+
""
102+
"")
93103
:compactPromptFile "prompts/compact.md"
94104
:index {:ignoreFiles [{:type :gitignore}]
95105
:repoMap {:maxTotalEntries 800

0 commit comments

Comments
 (0)