mirror of
https://github.com/openai/codex.git
synced 2026-11-21 15:10:25 +00:00
Add appearance metadata to thread sections (#37898)
## What changed - Add optional `icon` and `color` appearance fields to custom thread sections and expose them through the app-server protocol. - Persist appearance metadata in SQLite and include it when listing sections or returning threads. - Let `threadSection/update` preserve an omitted appearance, clear it with `null`, or replace it with a new value. - Reject appearance fields larger than 64 bytes. ## Testing - Cover protocol compatibility, persistence across restart, update and clear behavior, and field-length validation. GitOrigin-RevId: 8f55ce4f42f8bd17aa5416848a85845f681953df
This commit is contained in:
1 parent
92912d6d84
commit
1549756b78
54 files changed
+939
-47
No files matched your search
@@ -12,6 +12,7 @@ pub struct ListThreadSectionsParams {
|
||||
pub struct CreateThreadSectionParams {
|
||||
/// User-facing section name.
|
||||
pub name: String,
|
||||
pub appearance: Option<codex_state::ThreadSectionAppearance>,
|
||||
}
|
||||
|
||||
/// Parameters for renaming a thread section.
|
||||
@@ -21,6 +22,7 @@ pub struct RenameThreadSectionParams {
|
||||
pub section_id: String,
|
||||
/// Replacement user-facing section name.
|
||||
pub name: String,
|
||||
pub appearance: Option<Option<codex_state::ThreadSectionAppearance>>,
|
||||
}
|
||||
|
||||
/// Parameters for deleting a thread section.
|
||||
@@ -37,6 +39,7 @@ pub struct StoredThreadSection {
|
||||
pub id: String,
|
||||
/// User-facing section name.
|
||||
pub name: String,
|
||||
pub appearance: Option<codex_state::ThreadSectionAppearance>,
|
||||
}
|
||||
|
||||
/// A cursor-paginated page of independently persisted thread sections.
|
||||
|
||||
Reference in new issue
Block a user