Skip to main content

App

Struct App 

Source
pub struct App {
Show 49 fields pub messages: Vec<Line<'static>>, pub messages_raw: Vec<(String, String)>, pub specular_logs: Vec<String>, pub brief_mode: bool, pub tick_count: u64, pub stats: RustyStats, pub yolo_mode: bool, pub awaiting_approval: Option<PendingApproval>, pub active_workers: HashMap<String, u8>, pub worker_labels: HashMap<String, String>, pub active_review: Option<ActiveReview>, pub input: String, pub input_history: Vec<String>, pub history_idx: Option<usize>, pub thinking: bool, pub agent_running: bool, pub current_thought: String, pub professional: bool, pub last_reasoning: String, pub active_context: Vec<ContextFile>, pub manual_scroll_offset: Option<u16>, pub user_input_tx: Sender<UserTurn>, pub specular_scroll: u16, pub specular_auto_scroll: bool, pub gpu_state: Arc<GpuState>, pub git_state: Arc<GitState>, pub last_input_time: Instant, pub cancel_token: Arc<AtomicBool>, pub total_tokens: usize, pub current_session_cost: f64, pub model_id: String, pub context_length: usize, pub think_mode: Option<bool>, pub workflow_mode: String, pub autocomplete_suggestions: Vec<String>, pub selected_suggestion: usize, pub show_autocomplete: bool, pub autocomplete_filter: String, pub current_objective: String, pub voice_manager: Arc<VoiceManager>, pub voice_loading: bool, pub voice_loading_progress: f64, pub hardware_guard_enabled: bool, pub session_start: SystemTime, pub soul_name: String, pub attached_context: Option<(String, String)>, pub attached_image: Option<AttachedImage>, pub teleported_from: Option<String>, pub nav_list: Vec<PathBuf>, /* private fields */
}

Fields§

§messages: Vec<Line<'static>>§messages_raw: Vec<(String, String)>§specular_logs: Vec<String>§brief_mode: bool§tick_count: u64§stats: RustyStats§yolo_mode: bool§awaiting_approval: Option<PendingApproval>

Blocked waiting for user approval of a risky tool call.

§active_workers: HashMap<String, u8>§worker_labels: HashMap<String, String>§active_review: Option<ActiveReview>§input: String§input_history: Vec<String>§history_idx: Option<usize>§thinking: bool§agent_running: bool§current_thought: String§professional: bool§last_reasoning: String§active_context: Vec<ContextFile>§manual_scroll_offset: Option<u16>§user_input_tx: Sender<UserTurn>

Channel to send user messages to the agent task.

§specular_scroll: u16§specular_auto_scroll: bool

When true the SPECULAR panel snaps to the bottom every frame. Set false when the user manually scrolls up; reset true on new turn / Done.

§gpu_state: Arc<GpuState>

Shared GPU VRAM state (polled in background).

§git_state: Arc<GitState>

Shared Git remote state (polled in background).

§last_input_time: Instant

Track the last time a character or paste arrived to detect “fast streams” (pasting).

§cancel_token: Arc<AtomicBool>§total_tokens: usize§current_session_cost: f64§model_id: String§context_length: usize§think_mode: Option<bool>

Mirrors ConversationManager::think_mode for status bar display. None = auto, Some(true) = /think, Some(false) = /no_think.

§workflow_mode: String

Sticky user-facing workflow mode.

§autocomplete_suggestions: Vec<String>

[Autocomplete Hatch] List of matching project files.

§selected_suggestion: usize

[Autocomplete Hatch] Index of the currently highlighted suggestion.

§show_autocomplete: bool

[Autocomplete Hatch] Whether the suggestions popup is visible.

§autocomplete_filter: String

[Autocomplete Hatch] The search fragment after the ‘@’ symbol.

§current_objective: String

[Strategist] The currently active task from TASK.md.

§voice_manager: Arc<VoiceManager>

[Voice of Hematite] Local TTS manager.

§voice_loading: bool§voice_loading_progress: f64§hardware_guard_enabled: bool

If false, the VRAM watchdog is silenced.

§session_start: SystemTime

Wall-clock time when this session started (for report timestamp).

§soul_name: String

The current Rusty companion’s species name — shown in the footer.

§attached_context: Option<(String, String)>

File attached via /attach — injected as context prefix on the next turn, then cleared.

§attached_image: Option<AttachedImage>§teleported_from: Option<String>§nav_list: Vec<PathBuf>

Numbered directory list from the last /ls call — used by /ls to teleport.

Implementations§

Source§

impl App

Source

pub fn reset_active_context(&mut self)

Source

pub fn record_error(&mut self)

Source

pub fn reset_error_count(&mut self)

Source

pub fn reset_runtime_status_memory(&mut self)

Source

pub fn clear_pending_attachments(&mut self)

Source

pub fn push_message(&mut self, speaker: &str, content: &str)

Source

pub fn update_last_message(&mut self, token: &str)

Source

pub fn update_autocomplete(&mut self)

[Intelli-Hematite] Live scan of the workspace to populate autocomplete. Excludes common noisy directories like target, node_modules, .git.

Source

pub fn push_context_file(&mut self, path: String, status: String)

[Intelli-Hematite] Update the context strategy deck with real file data.

Source

pub fn update_objective(&mut self)

[Task Analyzer] Parse TASK.md to find the current active goal.

Source

pub fn copy_specular_to_clipboard(&self)

[Auto-Diagnostic] Copy full session transcript to clipboard.

Source

pub fn write_session_report(&self)

Source

pub fn copy_transcript_to_clipboard(&self)

Source

pub fn copy_clean_transcript_to_clipboard(&self)

Source

pub fn copy_last_reply_to_clipboard(&self) -> bool

Auto Trait Implementations§

§

impl Freeze for App

§

impl !RefUnwindSafe for App

§

impl Send for App

§

impl Sync for App

§

impl Unpin for App

§

impl UnsafeUnpin for App

§

impl !UnwindSafe for App

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,