-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Conversation naming #8991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation naming #8991
Conversation
JaviSoto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!!
Random suggestion I just thought of: it could be useful to give the agent a way to set the name as well via a tool call, so you can tell the agent to name the conversation as well? (you could even add something to your AGENTS.md with instructions on how you want the agent to name your sessions, or to rename them in certain cases etc)
codex-rs/cli/src/main.rs
Outdated
| #[derive(Debug, Parser)] | ||
| struct ResumeCommand { | ||
| /// Conversation/session id (UUID). When provided, resumes this session. | ||
| /// Conversation/session id (UUID) or session name. UUIDs take precedence if it parses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| pub struct SessionMetaUpdatedEvent { | ||
| /// Name left as session_id instead of thread_id for backwards compatibility. | ||
| pub session_id: ThreadId, | ||
| #[serde(default, skip_serializing_if = "Option::is_none")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
jif-oai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would def go to the index file
- can we try to use
threadinstead ofsessionas much as possible
| Ok(()) | ||
| } | ||
|
|
||
| async fn rewrite_session_name( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those functions should not be needed. We should use the same mechanism as for the model used during the rollout for example
|
@jif-oai @JaviSoto moved to an index file instead of SessionMeta so we don't touch rollout files. We're reading a Implemented your comments (adding tests on resume, move to thread, thread_name or thread_id naming) |
Session renaming:
/rename my_session/renamewithout arg and passing an argument incustomViewPromptCODEX_HOME/sessions.jsonlSession resuming:
CODEX_HOME/sessions.jsonlfirst entry matching the name and resumes the session