From 0712b1c422aa64adbe6271af6fe19cd1a892ea69 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 14 Oct 2025 08:42:29 -0700 Subject: [PATCH] feat: expand character editor to show all v2/v3 character card fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added support for all v2/v3 character card fields in the character editor UI: - Description (10-row textarea) - Scenario - Message Example - Post-History Instructions - Alternate Greetings (one per line) - Tags (comma-separated) - Creator - Character Version - Creator Notes Updated frontend to load and save all fields, and backend update_character command to accept all new parameters. This allows imported v3 character cards to display their full details, especially the description field which contains the main character information. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src-tauri/src/lib.rs | 18 ++++++++++ src/index.html | 81 ++++++++++++++++++++++++++++++++++++++++++++ src/main.js | 29 ++++++++++++++++ 3 files changed, 128 insertions(+) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 666dfba..7a1a1da 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -630,6 +630,15 @@ fn update_character( system_prompt: String, greeting: Option, personality: Option, + description: Option, + scenario: Option, + mes_example: Option, + post_history: Option, + alt_greetings: Option>, + tags: Option>, + creator: Option, + character_version: Option, + creator_notes: Option, avatar_path: Option, ) -> Result<(), String> { let mut character = get_active_character(); @@ -637,6 +646,15 @@ fn update_character( character.system_prompt = system_prompt; character.greeting = greeting; character.personality = personality; + character.description = description; + character.scenario = scenario; + character.mes_example = mes_example; + character.post_history_instructions = post_history; + character.alternate_greetings = alt_greetings.unwrap_or_default(); + character.tags = tags.unwrap_or_default(); + character.creator = creator; + character.character_version = character_version; + character.creator_notes = creator_notes; character.avatar_path = avatar_path; save_character(&character) } diff --git a/src/index.html b/src/index.html index fcfe802..4ba3109 100644 --- a/src/index.html +++ b/src/index.html @@ -184,6 +184,87 @@ /> +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+