Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions cli/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,22 +248,6 @@ impl AuthStore {
self.write_secrets(&secrets)
}

#[allow(dead_code)] // Retained for explicit credential inspection and compatibility tooling.
pub fn load_inline_protocol_temporary(
&self,
) -> Result<Option<InlineProtocolAuthorization>, AuthError> {
let Some(secrets) = self.read_secrets_for_current_api()? else {
return Ok(None);
};
if secrets.logout_in_progress {
return Ok(None);
}
secrets
.inline_protocol_temporary
.map(TryInto::try_into)
.transpose()
}

pub fn load_inline_protocol_authorizations(
&self,
) -> Result<Option<(InlineProtocolAuthorization, InlineProtocolAuthorization)>, AuthError> {
Expand Down
13 changes: 0 additions & 13 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7360,19 +7360,6 @@ fn proto_user_matches_filter(user: &proto::User, needle: &str) -> bool {
false
}

#[allow(dead_code)] // Retained until the legacy bearer-only compatibility seam is removed.
async fn fetch_message_by_id(
realtime: &mut AuthenticatedRealtime,
peer: &proto::InputPeer,
message_id: i64,
) -> Result<proto::Message, Box<dyn std::error::Error>> {
let (messages, _) = fetch_messages_by_ids(realtime, peer, &[message_id]).await?;
messages
.into_iter()
.next()
.ok_or_else(|| CliError::invalid_args("Message not found for that peer.").into())
}

/// The server caps one history page, so longer ranges are fetched in pages.
const HISTORY_PAGE_LIMIT: i32 = 500;

Expand Down
17 changes: 6 additions & 11 deletions crates/agent-driver-claude/src/harness/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ use std::time::{Duration, Instant};

use inline_agent_bridge::harness::{
Availability, AvailabilityMatrix, CapabilityManifest, Catalog, CatalogMode, CatalogScope,
CompatTier, DEFAULT_HUB_CAPACITY, Delivery, DeliveryKind, Envelope, Event, EventHub,
EventStream, ExecutableInfo, ExecutableSource, ForkPoint, HarnessDriver, HarnessFuture, HeldBy,
HeldSurface, Input, InputDisposition, InputReceipt, InteractionId, LiveWork, ModeId, Op,
OpError, OpKind, OpOutcome, OpenError, OpenMode, OpenSpec, Origin, OutputMode, QueueEntryId,
ReleaseOutcome, Released, RunState, RunStateTracker, RuntimeHealth, RuntimeInfo, SendError,
Session, SessionKey, SessionPage, SessionQuery, SessionSummary, SettingsScope, SetupReason,
CompatTier, DEFAULT_HUB_CAPACITY, Delivery, DeliveryKind, Event, EventHub, EventStream,
ExecutableInfo, ExecutableSource, ForkPoint, HarnessDriver, HarnessFuture, HeldBy, HeldSurface,
Input, InputDisposition, InputReceipt, InteractionId, LiveWork, ModeId, Op, OpError, OpKind,
OpOutcome, OpenError, OpenMode, OpenSpec, Origin, OutputMode, QueueEntryId, ReleaseOutcome,
Released, RunState, RunStateTracker, RuntimeHealth, RuntimeInfo, SendError, Session,
SessionKey, SessionPage, SessionQuery, SessionSummary, SettingsScope, SetupReason,
SteerPriority, TurnPhase,
};
use inline_agent_bridge::{
Expand Down Expand Up @@ -1819,11 +1819,6 @@ fn open_error(error: ConnectError) -> OpenError {
OpenError::Driver(DriverError::Unavailable(error.to_string()))
}

#[allow(dead_code)]
fn envelope_session(envelope: &Envelope) -> &str {
envelope.session.session.as_str()
}

#[cfg(test)]
mod launch_tests {
use super::*;
Expand Down
2 changes: 1 addition & 1 deletion crates/agent-driver-claude/src/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ mod tests {
/// `INLINE_HISTORY_LAB=<session id>[,<id>…] cargo test -p inline-agent-driver-claude --lib history_lab -- --ignored --nocapture`
#[cfg(test)]
#[test]
#[ignore]
#[ignore = "lab: reads the local Claude Code store; set INLINE_HISTORY_LAB"]
fn history_lab() {
let store = crate::sessions::SessionStore::resolve(&[]).expect("a Claude Code store");
for id in std::env::var("INLINE_HISTORY_LAB")
Expand Down
Loading
Loading