Skip to content

Commit 44f3771

Browse files
committed
bug fixes
1 parent cea4c3f commit 44f3771

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

agents/assistant/agent.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,6 @@ memory_read = ["*"]
7676
memory_write = ["self.*", "shared.*"]
7777
agent_message = ["*"]
7878
shell = ["python *", "cargo *", "git *", "npm *"]
79+
80+
[autonomous]
81+
max_iterations = 100

crates/openfang-api/src/channel_bridge.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,8 @@ fn read_token(env_var_or_token: &str, adapter_name: &str) -> Option<String> {
10251025
|| env_var_or_token.starts_with("xoxb-")
10261026
|| env_var_or_token.starts_with("xapp-")
10271027
|| env_var_or_token.starts_with("sk-")
1028-
|| env_var_or_token.starts_with("Bearer ");
1028+
|| env_var_or_token.starts_with("Bearer ")
1029+
|| env_var_or_token.len() > 80; // Long random strings are tokens, not env var names
10291030

10301031
if looks_like_token {
10311032
warn!(

0 commit comments

Comments
 (0)