Skip to content

Nested steps for tools etc. #1077

@minhduc0711

Description

@minhduc0711

Describe the bug
Version 1.1.300 introduced a new UI design to display intermediate steps, but the nested steps are no longer displayed in a nested manner.

To Reproduce
Run this example

import chainlit as cl


@cl.step(type="tool")
async def parent_step():
    await child_step()
    return "Parent step output"


@cl.step(type="tool")
async def child_step():
    return "Child step output"


@cl.on_chat_start
async def main():
    await parent_step()

Expected behavior
The child step should be indented to indicate that it is nested inside the parent step.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Firefox
  • Version: 126.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureOverall project architecture.backendPertains to the Python backend.enhancementNew feature or requestfrontendPertains to the frontend.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions