Chat.app() logs GET /favicon.ico 404 Not Found and provides no way to configure a favicon

Open
#440 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
frontend

Research direction

Start by reading the implementation of Chat.app() and how it serves the chat interface. The issue leaves the intended solution open: a default favicon, a configuration option, or documentation for avoiding the 404. Done means the chosen approach addresses the /favicon.ico request without cluttering logs, with behavior covered by an appropriate test or documentation.

Written by the indexing model from the issue text.

Description

ai-triage:done Priority: Low

When launching a chat app via Chat.app(), the browser automatically requests /favicon.ico. Since chatlas does not serve any favicon and app() exposes no parameter to configure one, the server logs a 404 Not Found for every page load:

INFO:     127.0.0.1:11212 - "GET /favicon.ico HTTP/1.1" 404 Not Found

This is harmless for the chat functionality, but it clutters the logs and cannot be suppressed or fixed through the public API.

Reproduce

import chatlas as ctl

image_url = "https://www.python.org/static/img/python-logo.png"
base_url = ""

chat = ctl.ChatOpenAICompletions(
    model="qwen3.8-27b",         
    api_key=_KEY,
    base_url=base_url,            
    system_prompt="You are a helpful assistant.",
)


chat.app()

Open the app in a browser. The terminal running the app will show the 404 log line.

Screeshot:
Image

Expected behavior
Either:

Chat.app() serves a default favicon (even a tiny placeholder), or

Chat.app() accepts a parameter to specify a custom favicon or static file directory, or

The documentation explains how to avoid the 404 (e.g. by ignoring it or by building a custom Shiny app).

Dominant language
Python
Stars
179
Forks
32
Avg merge
1d 3h
Merged PRs (30d)
10

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/chatlas

All issues in posit-dev/chatlas

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.