remote tasks

This commit is contained in:
easong-openai
2025-09-03 16:57:37 -07:00
parent e83c5f429c
commit d2fcf4314e
51 changed files with 6048 additions and 68 deletions
+30
View File
@@ -0,0 +1,30 @@
use codex_tui::ComposerAction;
use codex_tui::ComposerInput;
#[derive(Default)]
pub struct NewTaskPage {
pub composer: ComposerInput,
pub submitting: bool,
pub env_id: Option<String>,
}
impl NewTaskPage {
pub fn new(env_id: Option<String>) -> Self {
let mut composer = ComposerInput::new();
composer.set_hint_items(vec![
("⏎", "send"),
("Shift+⏎", "newline"),
("Ctrl+O", "env"),
("Ctrl+C", "quit"),
]);
Self {
composer,
submitting: false,
env_id,
}
}
pub fn can_submit(&self) -> bool {
self.env_id.is_some() && !self.submitting
}
}