v0.0.87 - Fix config_store d_tag use-after-free causing llm_config replacement failures

This commit is contained in:
Your Name
2026-03-18 17:54:53 -04:00
parent fb2bab2ce7
commit d8e90ffa39
3 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -55,11 +55,11 @@ Skills compose by adoption-list order (`10123`) and trigger tags carry runtime e
Didactyl will support local inference, which is very privacy preserving. Remote inference does however have it's advantages, and in those cases Didactyl supports using Bitcoin Lightning and eCash inference providers.
## Current Status — v0.0.86
## Current Status — v0.0.87
**Active build — this project is barely working. Experiment at your own risk.**
> Last release update: v0.0.86Return masked api_key field in model_get/model_set responses
> Last release update: v0.0.87Fix config_store d_tag use-after-free causing llm_config replacement failures
- Connects to configured relays with auto-reconnect and relay state transition logging
- Publishes configured startup events per relay as each relay becomes connected
+2 -2
View File
@@ -12,8 +12,8 @@
// Using DIDACTYL_ prefix to avoid conflicts with nostr_core_lib VERSION macros
#define DIDACTYL_VERSION_MAJOR 0
#define DIDACTYL_VERSION_MINOR 0
#define DIDACTYL_VERSION_PATCH 86
#define DIDACTYL_VERSION "v0.0.86"
#define DIDACTYL_VERSION_PATCH 87
#define DIDACTYL_VERSION "v0.0.87"
// Agent metadata
#define DIDACTYL_NAME "Didactyl"
+5 -2
View File
@@ -143,6 +143,9 @@ char* execute_config_store(tools_context_t* ctx, const char* args_json) {
return json_error_local("config_store requires content");
}
char d_tag_buf[128];
snprintf(d_tag_buf, sizeof(d_tag_buf), "%s", d_tag_j->valuestring);
char* content_text = NULL;
if (cJSON_IsString(content_j) && content_j->valuestring) {
content_text = strdup(content_j->valuestring);
@@ -180,7 +183,7 @@ char* execute_config_store(tools_context_t* ctx, const char* args_json) {
}
cJSON_AddItemToArray(d_tag, cJSON_CreateString("d"));
cJSON_AddItemToArray(d_tag, cJSON_CreateString(d_tag_j->valuestring));
cJSON_AddItemToArray(d_tag, cJSON_CreateString(d_tag_buf));
cJSON_AddItemToArray(tags, d_tag);
cJSON_AddItemToArray(app_tag, cJSON_CreateString("app"));
@@ -208,7 +211,7 @@ char* execute_config_store(tools_context_t* ctx, const char* args_json) {
}
cJSON_AddBoolToObject(out, "success", 1);
cJSON_AddStringToObject(out, "d_tag", d_tag_j->valuestring);
cJSON_AddStringToObject(out, "d_tag", d_tag_buf);
cJSON_AddNumberToObject(out, "kind", CONFIG_KIND);
cJSON_AddNumberToObject(out, "content_length", (double)strlen(content_text));
cJSON_AddStringToObject(out, "event_id", publish_result.event_id);