aw-client CLI ignores aw-client.toml host/port

Abierto
#888 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@TimeToBuildBob ya está trabajando en esto.

Desde el 24/11/2026.

  • #896 de @TimeToBuildBob — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
rust
Área
cli

Línea de trabajo

Start in aw-client-rust/src/bin/aw-client.rs at run(), where host/port are resolved and port falls back to 5600/5666. Read the existing config handling and the toml dependency from #753, then mirror Python's [server]/[server-testing] hostname/port lookup in ~/.config/activitywatch/aw-client/aw-client.toml. Done means flags still win when present and the config supplies host/port otherwise. A linked pull request (#896) is open, so check it first.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

The aw-client CLI (aw-client-rust/src/bin/aw-client.rs) ignores the client config file. run() picks the port from --port or hardcodes 5600 (5666 with --testing), and the host comes only from --host. Python's aw-client reads hostname/port from [server] ([server-testing] with testing) in aw-client.toml, so a user with a custom port in their profile config gets the right server from Python and silently talks to the wrong one (or fails to connect) from the Rust CLI.

Expected from the code (not run end to end): set port = "5650" under [server] in ~/.config/activitywatch/aw-client/aw-client.toml, run aw-server-rust on 5650, then aw-client buckets: it connects to 5600.

#740 documented the current defaults, so this is a parity gap, not a regression. Possible fix: read aw-client.toml (the toml dependency from #753 is already there) for host/port when the flags are absent.

Lenguaje dominante
Rust
Estrellas
322
Forks
107
Merge medio
2 d 16 h
PR fusionados (30 d)
25

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ActivityWatch/aw-server-rust

Todos los issues de ActivityWatch/aw-server-rust

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.