mirror of
https://github.com/openai/codex.git
synced 2026-04-30 17:36:40 +00:00
@@ -1482,7 +1482,7 @@ impl ChatWidget {
|
||||
let mut config = config;
|
||||
config.model = Some(model.clone());
|
||||
let mut rng = rand::rng();
|
||||
let placeholder = EXAMPLE_PROMPTS[rng.random_range(0..EXAMPLE_PROMPTS.len())].to_string();
|
||||
let placeholder = PLACEHOLDERS[rng.random_range(0..PLACEHOLDERS.len())].to_string();
|
||||
let codex_op_tx = spawn_agent(config.clone(), app_event_tx.clone(), thread_manager);
|
||||
|
||||
let mut widget = Self {
|
||||
@@ -1570,7 +1570,7 @@ impl ChatWidget {
|
||||
..
|
||||
} = common;
|
||||
let mut rng = rand::rng();
|
||||
let placeholder = EXAMPLE_PROMPTS[rng.random_range(0..EXAMPLE_PROMPTS.len())].to_string();
|
||||
let placeholder = PLACEHOLDERS[rng.random_range(0..PLACEHOLDERS.len())].to_string();
|
||||
|
||||
let codex_op_tx =
|
||||
spawn_agent_from_existing(conversation, session_configured, app_event_tx.clone());
|
||||
@@ -4143,13 +4143,15 @@ impl Notification {
|
||||
|
||||
const AGENT_NOTIFICATION_PREVIEW_GRAPHEMES: usize = 200;
|
||||
|
||||
const EXAMPLE_PROMPTS: [&str; 6] = [
|
||||
const PLACEHOLDERS: [&str; 8] = [
|
||||
"Explain this codebase",
|
||||
"Summarize recent commits",
|
||||
"Implement {feature}",
|
||||
"Find and fix a bug in @filename",
|
||||
"Write tests for @filename",
|
||||
"Improve documentation in @filename",
|
||||
"Run /review on my current changes",
|
||||
"Use /skills to list available skills",
|
||||
];
|
||||
|
||||
// Extract the first bold (Markdown) element in the form **...** from `s`.
|
||||
|
||||
Reference in New Issue
Block a user